On 19/07/17 02:50, Steven Miano wrote:
> ​​usermod -p $(openssl passwd -1 ${SOME_TEXT}) ${USERNAME_HERE}

Eeeek!  -1 gives MD5 hashed passwords! Don't do that!  MD5 is considered
broken and very weak!


There's some Python and Perl examples here which gives SHA512 based
password hashes.

<https://unix.stackexchange.com/questions/52108/how-to-create-sha512-password-hashes-on-command-line>


-- 
kind regards,

David Sommerseth

Reply via email to