convert data to bytes if it isnt

master
Kevin Froman 2018-04-22 21:24:34 -05:00
parent 7578ac874b
commit c807056ef2
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
1 changed files with 2 additions and 0 deletions

View File

@ -272,6 +272,8 @@ class Core:
'''
data = data
hasher = hashlib.sha3_256()
if not type(data) is bytes:
data = data.encode()
hasher.update(data)
dataHash = hasher.hexdigest()
if type(dataHash) is bytes: