in reply to How do I encrypt an Unix password?
#!/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 |