Skip to content

Instantly share code, notes, and snippets.

@cubapp
Created September 18, 2019 12:50
Show Gist options
  • Save cubapp/dec68ea01655ed85e3cda84a4b5d56ae to your computer and use it in GitHub Desktop.
Save cubapp/dec68ea01655ed85e3cda84a4b5d56ae to your computer and use it in GitHub Desktop.
Generate MD5 hash password with given salt
python -c "import random,string,crypt; not_so_randomsalt = 'synergy';
print crypt.crypt('', '\$1\$%s\$' % not_so_randomsalt)"
$1$synergy$O31nVEgYyKUdmjDRPUq8p.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment