Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import hashlib
- import sys
- target = sys.argv[1]
- i = 0
- while True:
- h = hashlib.sha1(str(i).encode('ascii')).hexdigest()
- if h.endswith(target):
- print(i)
- break
- i += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement