Increase shortened hash length to 60 bits

This commit is contained in:
RunasSudo 2018-01-20 21:46:12 +10:30
parent 816412aa93
commit 86a28cd1d8
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -85,7 +85,7 @@ class SHA256:
else: else:
b64 = self.impl.getHash('B64') b64 = self.impl.getHash('B64')
if short: if short:
return b64[:8] return b64[:10]
return b64 return b64
def hash_as_hex(self): def hash_as_hex(self):