Skip to content

Instantly share code, notes, and snippets.

@vpnwall-services
Created September 2, 2020 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vpnwall-services/490b9f7d526856eac01f4d2a614db96a to your computer and use it in GitHub Desktop.
Save vpnwall-services/490b9f7d526856eac01f4d2a614db96a to your computer and use it in GitHub Desktop.
[Mysql Encrypt Password] Encrypt a password the same way as Mysql does #linux #python #mysql #encrypt #password
#!/bin/bash
python -c 'from hashlib import sha1; print "*" + sha1(sha1("mypassword").digest()).hexdigest().upper()'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment