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',