Create Password Hashes From the Command Line

I wanted to generate a password hash for use in the /etc/shadow file. My local Linux Mint (Ubuntu) Desktop already has mkpasswd available, your distribution may vary.

mkpasswd -m SHA-512

This prompts for the password and will generate the hash.

 

 

2 Responses to “Create Password Hashes From the Command Line”

    • jonny

      No Babis as you are prompted for the password. But you could always run:
      unset HISTFILE
      before running any commands you don’t want recorded in your history file. Talk soon, jonny

      Reply

Leave a Reply to babis

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>