28 Apr 2013
Generating Random Passwords in Perl
Though I’ve already created the same thing in another post using a Bash function, I had a very important need for a Perl script that produced random strings. Once I got that little script working, I decided to rewrite the original Bash password generator function entirely in Perl. This may not be the most efficient way to hack it up, but I’m no Perl monger, so don’t expect perfection. This script does work well, however, and requires no additional modules, so it can be run anywhere there is a Perl interpreter.
Save this as
salpwgen.pl or whatever file name you choose. The first line allows you to make the file executable and run it as
./salpwgen.pl, assuming your Perl interpreter is in
If you have any suggestions, or if you would like to see some other type of secret/hash generated, please feel free to comment below.
Yet another crap post by:
Salvatore LaMendola at 21:19