De Wiki inetshell
Saltar a: navegación, buscar

Calcular HASH SHA256 multiples veces

https://stackoverflow.com/questions/10235161/how-to-iteratively-sha256-in-python-using-native-lib-ie-hashlib-using-byte

import hashlib

# hash 1 time...
digest = hashlib.sha256(raw).digest()

# then hash 64k-1 times
for x in range(0, 64000-1):
  digest = hashlib.sha256(digest).digest()
print digest.encode("hex")