Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Simple Hashlib by TovarischZhukov
from hashlib import md5, sha1, sha224, sha384, sha256, sha512
def checkio(hashed_string, algorithm):
hash_d={"md5":md5(), "sha1":sha1(), "sha224":sha224(), "sha384":sha384(), "sha256":sha256(), "sha512":sha512()}[algorithm]
hash_d.update(hashed_string.encode("utf-8"))
return hash_d.hexdigest()
Jan. 4, 2016