How to generate a random password from commandline

Passwords are the key to security. For obvious reasons, passwords need to be strong, long and secure.  Sometimes generating complex and secure passwords can be a bit time taking.

 Generate a Strong Password using Commandline


There are many ways in which we can generate a password. Follow these steps to generate a strong password that is also random.

1.  Visit a password generating website of the kind of

2. Use the md5sum tool to generate a random password.  We need to find something which is constantly changing so that we will get new md5sum whenever we do the command. So, I choose to check the md5sum of the current date, and it is always changing.

So use date |md5sum to generate a random password from command line.


And Voila! you’ve successfully generated a strong password.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close Menu