|
发表于 2022-12-25 11:05:43
|
显示全部楼层
顺序是这样的么(为啥我跑不出结果  )- def jiami(x):
- x = x.encode()
- x = hashlib.sha1(x).hexdigest().encode()
- x = hashlib.sha224(x).hexdigest().encode()
- x = hashlib.sha256(x).hexdigest().encode()
- x = hashlib.sha384(x).hexdigest().encode()
- x = hashlib.sha512(x).hexdigest().encode()
- x = hashlib.md5(x).hexdigest().encode()
- x = hmac.new(key = 'PASS'.encode(), msg = x, digestmod = hashlib.sha1).hexdigest().encode()
- x = hmac.new(key = 'PASS'.encode(), msg = x, digestmod = hashlib.sha224).hexdigest().encode()
- x = hmac.new(key = 'PASS'.encode(), msg = x, digestmod = hashlib.sha256).hexdigest().encode()
- x = hmac.new(key = 'PASS'.encode(), msg = x, digestmod = hashlib.sha384).hexdigest().encode()
- x = hmac.new(key = 'PASS'.encode(), msg = x, digestmod = hashlib.sha512).hexdigest().encode()
- x = hmac.new(key = 'PASS'.encode(), msg = x, digestmod = hashlib.md5).hexdigest()
- return x
- for i in range(0, 1000000):
- for digits in range(len(str(i)), 7):
- real = '{'+f':0{digits}'+'}'
- x = real.format(i)
- if jiami(x) == '4f6632cc5dca50adf6f58c99521dca2e':
- print(x)
- break
- if i % 100000 == 0:
- print(i)
复制代码 |
|