From 0cce6a5c170c5f6100578383123242fbe2980df9 Mon Sep 17 00:00:00 2001 From: Egor Date: Tue, 20 Apr 2021 14:09:37 +0300 Subject: [PATCH 1/3] =?UTF-8?q?=D1=81=D0=BE=D0=B2=D0=BC=D0=B5=D1=81=D1=82?= =?UTF-8?q?=D0=B8=D0=BC=D0=BE=D1=81=D1=82=D1=8C=20=D1=81=20pycryptodom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- swutils/encrypt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swutils/encrypt.py b/swutils/encrypt.py index edcf685..94a5130 100644 --- a/swutils/encrypt.py +++ b/swutils/encrypt.py @@ -7,7 +7,7 @@ def encrypt(raw, key): cipher = AES.new(_hash_key(key=key), AES.MODE_ECB) padded = _pad(raw) - encrypted = cipher.encrypt(padded) + encrypted = cipher.encrypt(padded.encode()) encoded = base64.b64encode(encrypted) return encoded From a47d754ea78f60108568c63465849fb063355794 Mon Sep 17 00:00:00 2001 From: Egor Date: Tue, 20 Apr 2021 14:11:18 +0300 Subject: [PATCH 2/3] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8b30244..b4d47f8 100755 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='sw-python-utils', - version='0.0.17', + version='0.0.18', description='Soft Way company python utils.', author='Telminov Sergey', url='https://github.com/telminov/sw-python-utils', From 35b1844343edae441e98db288172ebe0fe79c37a Mon Sep 17 00:00:00 2001 From: Egor Date: Tue, 26 Apr 2022 22:53:39 +0300 Subject: [PATCH 3/3] =?UTF-8?q?=D0=97=D0=B0=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB?= =?UTF-8?q?=20=D0=BD=D0=B0=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6?= =?UTF-8?q?=D0=B8=D0=B2=D0=B0=D0=B5=D0=BC=D1=83=D1=8E=20=D0=B1=D0=B8=D0=B1?= =?UTF-8?q?=D0=BB=D0=B8=D0=BE=D1=82=D0=B5=D0=BA=D1=83=20pycryptodome?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pycrypto переросла в нее, сама больше не поддерживается --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b4d47f8..9ee46a3 100755 --- a/setup.py +++ b/setup.py @@ -16,6 +16,6 @@ license='The MIT License', test_suite='nose.collector', install_requires=[ - 'pycrypto', 'requests', 'beautifulsoup4', 'phonenumbers' + 'pycryptodome', 'requests', 'beautifulsoup4', 'phonenumbers' ], )