Skip to content

Instantly share code, notes, and snippets.

@4k1
Created May 13, 2018 17:45
Show Gist options
  • Save 4k1/593fd0259a0052288b9392d7823236f8 to your computer and use it in GitHub Desktop.
Save 4k1/593fd0259a0052288b9392d7823236f8 to your computer and use it in GitHub Desktop.
import math
hashv = "a00a0a1001100a000a0aaaa1aa0000aaa00a0a1001100a000a0aaaa1aa0000aa"
fb = len(list(set(list( hashv )))) # b
fbl = math.pow(fb, len( hashv )) # b^l
fH = math.log2(fbl) # log2(b^l)
print(fH)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment