This exercise is one that I originally wrote for my company's intranet. It's a password generator. Normally it loops through /usr/dict/words, but since this server doesn't provide me read access to that file (and for performance reasons on a shared server), I have used a shorter list. It provides several "levels" of strength, each a little more complex than the last.
The source for this generator can be found online, but it can be pared down significantly if you don't need all the cypher levels: pwgen.phps.
We recommend you choose a password with AT LEAST "simple" cypher strength.| Cypher | Password | Description |
|---|---|---|
| None | sprinkle | Long word, lowercase |
| Simple | sPRinkle | Two or fewer caps |
| Medium | SprINKlE | Mulitple Caps |
| Strong | Spr1NKl3 | Caps and l33t-speak 1 |
| Insane | Spr1|\|K|_3 | Caps and l33t-speak 2 |
| ------- Simple Functions -------- | ||
| reverse | elknirps | Backwards |
| rotate 13 | fcevaxyr | Letters rotated 13 characters |
| shuffled | lnprkeis | Letters shuffled |
| metaphone | SPRNKL | Pronunciation |
| --------------------------------- | ||
| Indexing 110 words | ||