init
This commit is contained in:
commit
a0f6bb9b43
19
main.py
Normal file
19
main.py
Normal file
@ -0,0 +1,19 @@
|
||||
from tqdm import tqdm
|
||||
import hashlib
|
||||
|
||||
|
||||
def main():
|
||||
prefix = b'norohind/'
|
||||
lowest = hashlib.sha256(prefix)
|
||||
|
||||
for nonce in range(300_000_000_000, 500_000_000_000):
|
||||
data = prefix + str(nonce).encode()
|
||||
res = hashlib.sha256(data)
|
||||
if res.digest() < lowest.digest():
|
||||
lowest = res
|
||||
hexdigest = res.hexdigest()
|
||||
tqdm.write(f'new minimal {len(hexdigest) - len(hexdigest.lstrip("0"))} {hexdigest}, {data}')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
Loading…
x
Reference in New Issue
Block a user