Created
June 5, 2018 06:42
-
-
Save RayOnFire/9b29866d2a1958dab53d33e27e44f4d1 to your computer and use it in GitHub Desktop.
[Python SHA1]Python SHA1用法 #Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import hashlib | |
| salt = "some_salt" | |
| sha1 = hashlib.sha1() | |
| sha1.update(bytes('test' + salt, 'utf8')) | |
| print(sha1.hexdigest()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment