Sunday, April 19, 2020

Python Code: SHA: Secured Hash Algorithm


import hashlib
print ("Available Algorithms in HASHLIB: ", end ="")
print (hashlib.algorithms_guaranteed)
print ("\r")
str = "1"
result = hashlib.sha256(str.encode())
print("SHA256 Hash: ")
print(result.hexdigest())
print ("\r")
result = hashlib.sha384(str.encode())
print("SHA384 Hash: ")
print(result.hexdigest())




No comments:

Post a Comment