Hash password: Difference between revisions
From wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
RHEL8 | RHEL8 | ||
<code>python3 -c 'import crypt,getpass; print(crypt.crypt(getpass.getpass()))'</code> | <code>python3 -c 'import crypt,getpass; print(crypt.crypt(getpass.getpass()))'</code> |
Latest revision as of 18:15, 3 November 2022
RHEL7
python -c 'import crypt,getpass; print crypt.crypt(getpass.getpass())'
RHEL8
python3 -c 'import crypt,getpass; print(crypt.crypt(getpass.getpass()))'