in reply to How do I encrypt an Unix password?

You can try this. It works and is fairly lightweight.
#!/usr/bin/perl print "Enter your password: "; chomp($password = <STDIN>); $salt = sprintf("%02x",($$^time^rand)&0xFF); print "Your encrypted password: ".crypt($password,$salt)."\n";

Replies are listed 'Best First'.
Re^2: How do I encrypt an Unix password?
by Anonymous Monk on Feb 07, 2014 at 11:55 UTC
    Thanks for the script, How to decrypt the encrypted code. My object is , Encrypt and decrypt the complex password with special character password.