DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Generate 20 Random Passwords

08.20.2006
| 1908 views |
  • submit to reddit
        
< /dev/urandom tr -cd '[:print:]' | fold -w 15 | head -n 20
    

Comments

Snippets Manager replied on Mon, 2006/10/09 - 7:04pm

This came in quite handy for a recent script I needed to write. Thanks.