Advertisement
deseven

mysqlPasswordHash() python

Apr 4th, 2017
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. import hashlib
  2.  
  3. def mysqlPasswordHash(password):
  4.     buffer = hashlib.sha1(password).digest()
  5.     hash = hashlib.sha1(buffer).hexdigest()
  6.     return '*' + hash.upper()
  7.  
  8. print mysqlPasswordHash('qwerty')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement