From 621895273f8a19307865d525af90e1c974b3aa0c Mon Sep 17 00:00:00 2001 From: ltt Date: Wed, 12 Jun 2024 19:16:30 +0800 Subject: [PATCH] feat: replace pycryptodome with pycryptodomex --- alipay/aop/api/util/EncryptUtils.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alipay/aop/api/util/EncryptUtils.py b/alipay/aop/api/util/EncryptUtils.py index 9036dc66f..3b26878d7 100644 --- a/alipay/aop/api/util/EncryptUtils.py +++ b/alipay/aop/api/util/EncryptUtils.py @@ -8,7 +8,7 @@ from alipay.aop.api.constant.CommonConstants import PYTHON_VERSION_3 from alipay.aop.api.exception.Exception import RequestException -from Crypto.Cipher import AES +from Cryptodome.Cipher import AES BLOCK_SIZE = AES.block_size diff --git a/setup.py b/setup.py index 87054c5df..90569e5e4 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ finally: desc_file.close() -requires = ["pycryptodome","rsa"] +requires = ["pycryptodomex","rsa"] setup( name=NAME,