|Perl Monk, Perl Meditation|
Golfing password creationby kyle (Abbot)
|on Jul 29, 2009 at 02:49 UTC||Need Help??|
When I need to set an initial password for someone at the office, I turn to this simple program:
A coworker remarked recently, "you're really not trying to make this easy, are you." Well, no.
This evening I thought about golfing this down to a one liner to make it easier to paste into a chat, and this is what I came up with:
I don't doubt that this could be improved greatly. Any monk who wants to play along should try to generate passwords of 8–15 characters from an alphabet that includes letters and non-letters (/\w/ and /\W/). The more secure the results, the better.
I'd consider a side discussion of manual password selection methods also to be on topic. My personal favorite is to take the initials of some phrase that I can recall reliably, usually a quote from a movie or a song lyric ("happy birthday to you" would be "hb2U"). At a company I used to work for, we'd set root on all the machines using different parts of a single song. If I was caught without my password list, I could go through the song phrase by phrase and find the password to whatever I was trying to access. That didn't happen much since I had the most commonly used ones memorized in a day or two.