3 ms·
Or just use a decimal hash, rather than hex? Eg in python3: import hashlib as h int(h.sha256(b" ").hexdigest(), 16) > 24725091799402603688614593151141908
by e12e 10y ago
Or just use a decimal hash, rather than hex? Eg in python3:
import hashlib as h
int(h.sha256(b" ").hexdigest(), 16)
>
24725091799402603688614593151141908335745916334489781770578761787218146381928
h.sha256(b" ").hexdigest()
> 36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068
It's longer, but even a 256-hash isn't that long? (and sha1 would probably be fine, obviously)