diff --git a/scratchcommunication/security.py b/scratchcommunication/security.py index 6b0d63a..f8373b0 100644 --- a/scratchcommunication/security.py +++ b/scratchcommunication/security.py @@ -132,7 +132,7 @@ class SymmetricEncryption: def __init__(self, key : int, hashed_key : bytes = None) -> None: self.key = key - self.hashed_key = hashlib.sha256(bytes(str(key), "utf-8")[-60:]).digest()[:16] + self.hashed_key = hashlib.sha256(bytes(str(key), "utf-8")[-53:]).digest()[:16] def encrypt(self, data : str, salt : int) -> str: seed = random.randrange(1000, 9999) diff --git a/setup.py b/setup.py index 3c0e406..e65484f 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='scratchcommunication', - version='2.2.7', + version='2.2.8', author='Simon Gilde', author_email='simon.c.gilde@gmail.com', description='A python module for communicating with scratch projects',