#!/usr/bin/env python from hashlib import md5 secret_key = r'iwrupvqb' num = 1 while True: hashed = md5(str(secret_key + str(num)).encode('utf-8')).hexdigest() if hashed[:5] == '00000': print(num) break num += 1 num = 1 while True: hashed = md5(str(secret_key + str(num)).encode('utf-8')).hexdigest() if hashed[:6] == '000000': print(num) break num += 1