Update readme to have version tag
This commit is contained in:
parent
e11c3d2733
commit
a5b6805b5f
2 changed files with 8 additions and 3 deletions
|
@ -1,4 +1,8 @@
|
|||
import hashlib, nacl.hash
|
||||
import hashlib
|
||||
|
||||
import nacl.hash
|
||||
|
||||
|
||||
def sha3_hash(data):
|
||||
try:
|
||||
data = data.encode()
|
||||
|
@ -8,9 +12,10 @@ def sha3_hash(data):
|
|||
hasher.update(data)
|
||||
return hasher.hexdigest()
|
||||
|
||||
|
||||
def blake2b_hash(data):
|
||||
try:
|
||||
data = data.encode()
|
||||
except AttributeError:
|
||||
pass
|
||||
return nacl.hash.blake2b(data)
|
||||
return nacl.hash.blake2b(data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue