1234567891011 |
- def hashPseudonym(self, i, key, tile):
- digest = hashes.Hash(hashes.SHA256(), default_backend())
- # for i in range (0,len(plainTail)): # {
- _digest = digest.copy()
- # key = secrets.token_bytes(32)
- _digest.update(bytes(i))
- _digest.update(key)
- _digest.update(bytes(tile))
- p = _digest.finalize() # }
- # digest.finalize()
- return p
|