Fix decryption bug
This commit is contained in:
parent
4400455769
commit
e0c9dfd2ad
|
@ -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:]
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user