Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Random Password Generator 1

Status
Not open for further replies.

iaresean

Programmer
Mar 24, 2003
570
ZA
Hi there folks,

Does anyone know of or have some code that I could use that generates a random password that will be acceptable by linux's standards.

Any links, ideas etc..greatly appreciated.

Sean.
 
Thanks alot PaulTEG,
Exactly what I was looking for: short and sweeeeet!
 
I'm a fan of Crypt::passGen [1]. It takes in a dictionary/wordlist, as is standard on most *nix installations, and bases "pronounceable" passwords on it. This is good if you want to keep the generated password, because you might actually remember it. If users are writing down their completely random passwords, that's a hearty drop in security itself. Then again, if you're generating passwords to reset users account or something and they're not actually being kept, then it really doesn't much matter.

There's a number of other similar modules on CPAN. String::MkPasswd [2], randpass [3], Crypt::GeneratePassword [4], Crypt::RandPass [5], etc etc

[1] [2] [3] [4] [5]
________________________________________
Andrew - Perl Monkey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top