Hash password
From wiki
Jump to navigationJump to search
RHEL7
python -c 'import crypt,getpass; print crypt.crypt(getpass.getpass())'
RHEL8
python3 -c 'import crypt,getpass; print(crypt.crypt(getpass.getpass()))'
RHEL7
python -c 'import crypt,getpass; print crypt.crypt(getpass.getpass())'
RHEL8
python3 -c 'import crypt,getpass; print(crypt.crypt(getpass.getpass()))'