Skip to content

Instantly share code, notes, and snippets.

@jayers99
Last active April 7, 2019 22:59
Show Gist options
  • Save jayers99/fbe2a2b448c5e097ca5275aace42275d to your computer and use it in GitHub Desktop.
Save jayers99/fbe2a2b448c5e097ca5275aace42275d to your computer and use it in GitHub Desktop.
encrypt linux passwd
# 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