• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

A cPanel Tech

The Diaries of a Linux Server Administrator

  • Home
  • About
  • Privacy
You are here: Home / Articles / How to generate a random password from commandline

How to generate a random password from commandline

October 30, 2015 By admin Leave a Comment

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 passwordsgenerator.net

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.

Filed Under: Articles, Linux, Tutorials Tagged With: linux, linux command line, password

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

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

Primary Sidebar

Copyright 2018 CPanelTech