cic-cli/cic/hash.py
2021-10-11 08:57:03 +02:00

11 lines
182 B
Python

class Hasher:
def __basehasher(self, v):
h = hashlib.sha256()
h.update(v)
return h.digest()
def hash(self, v):
return self.__basehasher(v)