CRYPT password on command line

Creating an encrypted password for passwd files  

echo MyPassword | openssl passwd -crypt -stdin