cic-cli/cic/hash.py

11 lines
182 B
Python
Raw Normal View History

2021-10-11 08:57:03 +02:00
class Hasher:
def __basehasher(self, v):
h = hashlib.sha256()
h.update(v)
return h.digest()
def hash(self, v):
return self.__basehasher(v)