Skip to content

Instantly share code, notes, and snippets.

@wavedocs
Created March 24, 2019 20:16
Show Gist options
  • Save wavedocs/0ff0c6a49ba596e79d6150f7e6084d0d to your computer and use it in GitHub Desktop.
Save wavedocs/0ff0c6a49ba596e79d6150f7e6084d0d to your computer and use it in GitHub Desktop.
tmp_dict = {
"md5": hashlib.md5(str.encode('utf-8')).hexdigest(),
"sha1": hashlib.sha1(str.encode('utf-8')).hexdigest(),
"sha224": hashlib.sha224(str.encode('utf-8')).hexdigest(),
"sha256": hashlib.sha256(str.encode('utf-8')).hexdigest(),
"sha384": hashlib.sha384(str.encode('utf-8')).hexdigest(),
"sha512": hashlib.sha512(str.encode('utf-8')).hexdigest(),
}
for i in sorted(tmp_dict.items()):
print(i[0], i[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment