24 lines
512 B
Python
24 lines
512 B
Python
puzzle = "iwrupvqb"
|
|
|
|
import hashlib
|
|
import sys
|
|
|
|
iterations = 0
|
|
|
|
while True:
|
|
zero_count = 0
|
|
key_increment = f'{puzzle}{iterations}'
|
|
hash_check = list(hashlib.md5(key_increment.encode()).hexdigest())
|
|
for index, x in enumerate(hash_check):
|
|
if x == '0':
|
|
zero_count += 1
|
|
print(zero_count)
|
|
if zero_count >= 6:
|
|
print(iterations)
|
|
print(hash_check)
|
|
sys.exit()
|
|
|
|
else:
|
|
break
|
|
|
|
iterations += 1 |