Obtenez du hash python

from hashlib import sha256
import math
your_data = "1234"
your_data = your_data.hex()
hash_result = sha256(str(your_data).encode())
result = hash_result.hexdigest()
print('Result: ',str(result))

#code by fawlid
Fawlid