SHAlphabet
Mis à jour
Mis à jour
import hashlib
import itertools
SYLS = ["ing","ck","sp","th","ly","r","ae","oa","eu","oo","uu","a","e","i","o","u"]
TARGET = bytes.fromhex('3c33e4fcfc797901b77a41febb30d67be4b175bd32d5fd8cf4c03ff7ceb94ca5')
def sha256_hex(s: str) -> bytes:
return hashlib.sha256(s.encode()).digest()
for L in range(1, 7):
print(f"Trying: {L}")
for candidate in itertools.product(SYLS, repeat=L):
candidate = ''.join(candidate)
if sha256_hex(candidate) == TARGET:
FOUND = candidate
print(f'FOUND: {FOUND}')
breakTrying: 1
Trying: 2
Trying: 3
Trying: 4
Trying: 5
Trying: 6
FOUND: ringckouck