Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import hashlib
- def mysqlPasswordHash(password):
- buffer = hashlib.sha1(password).digest()
- hash = hashlib.sha1(buffer).hexdigest()
- return '*' + hash.upper()
- print mysqlPasswordHash('qwerty')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement