考虑一下这个片段:
from Cryptodome.Hash import SHA256
text = b'Jeanny'
print('Hash of', text)
hx = SHA256.new(text).hexdigest()
print(hx)
h = SHA256.new(text).digest()
[print('{0:x}'.format(h[i]), end = '' ) for i in range(0,len(h))]
它打印:
Hash of b'Jeanny'
f51c7dbd56cc25c565f7c7ef951b06121e87e34f2e3bb466e873a2518715fe50
f51c7dbd56cc25c565f7c7ef951b6121e87e34f2e3bb466e873a2518715fe50
0
在位置29?