DEV Community

Discussion on: How to generate thousands of usernames and halfway decent passwords with Bash💯💯

Collapse
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

Very cool! I wonder if you could somehow extend this to store the passwords securely in Bash and retrieve them with a passcode, sort of like Chrome does. That might be involved, though. You'd probably need to encrypt and decrypt them to store them safely.

Collapse
 
thormeier profile image
Pascal Thormeier

Glad you liked it! Encrypting them sounds like a good idea indeed. GPG sounds like the right tool for that, according to a tutorial on techrepublic it can be used to encrypt and decrypt files. Theoretically, executing something like ./create-users.sh 10 > usernames.txt && gpg -c usernames.txt would achieve that. Having that in the script itself would be a lot more convenient, of course!