-
-
Save rm--/0320e1ca5c5f42d01d5a3156cceeb30f to your computer and use it in GitHub Desktop.
sha512 digest to int
This file contains 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 | |
h = hashlib.sha512() | |
h.update('input'.encode('utf-8')) | |
int(h.hexdigest()[0:8], base=16) | |
3698158640 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment