Fix decryption bug

This commit is contained in:
Tanner Collin 2019-09-10 03:30:21 +00:00
parent 4400455769
commit e0c9dfd2ad
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ class common:
return False return False
try: try:
ciphertext = base58.b58decode(ciphertext) ciphertext = base58.b58decode(ciphertext[1:])
key = SHA256.new(self.secret.encode()).digest() key = SHA256.new(self.secret.encode()).digest()
iv = ciphertext[:4] iv = ciphertext[:4]
ct = ciphertext[4:] ct = ciphertext[4:]

View File

@ -5,7 +5,7 @@ with io.open('README.md', encoding='utf-8') as fh:
long_description = fh.read() long_description = fh.read()
setuptools.setup(name='bwb', setuptools.setup(name='bwb',
version='1.0.7', version='1.0.8',
description='bwb', description='bwb',
long_description=long_description, long_description=long_description,
long_description_content_type='text/markdown', long_description_content_type='text/markdown',