How to encrypt text/password in Unix/Linux

# echo "username" | openssl passwd -1 -stdin