Last active
April 7, 2019 22:59
-
-
Save jayers99/fbe2a2b448c5e097ca5275aace42275d to your computer and use it in GitHub Desktop.
encrypt linux passwd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this only work on a centos box | |
python -c "import crypt; print crypt.crypt('password')" | |
python -c 'import crypt,getpass; print(crypt.crypt(getpass.getpass()))' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment