Generate strong passwords online and offline

mkpasswd Don LibesTo generate random and secure passwords offline I recommend oldie mkpasswd. It was written by Don Libes from National Institute of Standards and Technology very long time ago but works perfectly.

Install mkpasswd in Debian or any other distro containing APT by command:

sudo apt-get install -y mkpasswd

For some reason Ubuntu‘s repository contains makepasswd that was written by Marco d’Itri and has similar functionality. To install it run sudo apt-get install makepasswd.

Generate strong password by executing mkpasswd or makepasswd in command line.


makepasswd --char=10
mkpasswd -s "salt"

Another way is to get strong password online with that provides you with service free of charge.


Stefan Durand

My name is Stefan, I'm the admin of LinuxScrew. I am a full-time Linux/Unix sysadmin, a hobby Python programmer, and a part-time blogger. I post useful guides, tips, and tutorials on common Linux and Programming issues. Feel free to reach out in the comment section.

Leave a Reply

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