convert data to bytes if it isnt

This commit is contained in:
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

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: