From e0c9dfd2ada54c556fc489e6c81f8ed2d8a0b461 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 10 Sep 2019 03:30:21 +0000 Subject: [PATCH] Fix decryption bug --- bwb/common.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bwb/common.py b/bwb/common.py index d639c93..256fe73 100644 --- a/bwb/common.py +++ b/bwb/common.py @@ -88,7 +88,7 @@ class common: return False try: - ciphertext = base58.b58decode(ciphertext) + ciphertext = base58.b58decode(ciphertext[1:]) key = SHA256.new(self.secret.encode()).digest() iv = ciphertext[:4] ct = ciphertext[4:] diff --git a/setup.py b/setup.py index 8549797..a83e4f8 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ with io.open('README.md', encoding='utf-8') as fh: long_description = fh.read() setuptools.setup(name='bwb', - version='1.0.7', + version='1.0.8', description='bwb', long_description=long_description, long_description_content_type='text/markdown',