Skip to content

Commit

Permalink
2.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCommCraft committed Mar 7, 2024
1 parent f7f86e2 commit 129232e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scratchcommunication/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(23), "utf-8")).digest()[:16]
self.hashed_key = hashlib.sha256(bytes(str(key), "utf-8")[-60:]).digest()[:16]

def encrypt(self, data : str, salt : int) -> str:
seed = random.randrange(1000, 9999)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='scratchcommunication',
version='2.2.6',
version='2.2.7',
author='Simon Gilde',
author_email='simon.c.gilde@gmail.com',
description='A python module for communicating with scratch projects',
Expand Down

0 comments on commit 129232e

Please sign in to comment.