Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hash1 = "ca4974b7e8538aba9103bedef89f4426bc95f4c5a4f36d2ac2754290fa745b79"
- hash2 = "aa54ec82fa33f048e2b728eaa2eaaadae3ee6c48a730766ab8e7ffb459ce870e"
- bithash1 = bin(int(hash1, 16))[2:].zfill(256)
- bithash2 = bin(int(hash2, 16))[2:].zfill(256)
- diffbits = 0
- for x, y in zip(bithash1, bithash2):
- if x != y:
- diffbits = diffbits + 1
- print(diffbits)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement