I want to get hash sha256 from a string, as sha256 has 256-bit length and the size of each byte is 8 bit, I think the length of hash(in a string) must be 32 characters(256/8 = 32). but the hash length is 64 characters. can anyone help me?
print(hashlib.sha256('lsd'.encode()).hexdigest())
output:
3fd7dcbd130286b3799aa74e7fcb1d2ecc80d4c95a158d91dfa1d6a72557f769
hash length is 64, shouldn't it be 32?