Skip to navigation

How to generate a SHA-2 (sha256 or sha512) hashed password compatible with /etc/shadow

Updated 2013-08-30T21:23:49+00:00


  • Using the method detailed in this Red Hat Magazine article works great to generate /etc/shadow-compatible md5-hashed passwords, but what about SHA-256 or SHA-512? The openssl passwd --help command only mentions MD5.


  • Red Hat Enterprise Linux 6

Subscriber content preview. For full access to the Red Hat Knowledgebase, please log in.

Not a subscriber? Learn more about the benefits of Red Hat Subscriptions.