Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Simple Hashlib by Wei5
import random
gl=__import__.__globals__
sys=gl['sys']
hashlib=sys.modules['hashlib']
hashfunc_dic = {"md5":hashlib.md5, "sha224": hashlib.sha224, "sha256":hashlib.sha256, "sha256":hashlib.sha256,
"sha384":hashlib.sha384, "sha512":hashlib.sha512, "sha1":hashlib.sha1
}
def checkio(t, f):
h = hashfunc_dic[f]
r = h(bytes(t, "utf8"))
return r.hexdigest()
May 18, 2014
Comments: