replace Crypto with Cryptodome (#59924)

This commit is contained in:
Thomas NOËL 2021-12-20 14:59:27 +01:00
parent fd729ab30a
commit b0fe753a58
4 changed files with 7 additions and 6 deletions

View File

@ -26,8 +26,8 @@ from those services, reporting whether the transaction was successful and which
one it was. The full content (which is specific to the service) is also
reported for logging purpose.
The spplus and paybox module also depend upon the python Crypto library for DES
decoding of the merchant key and RSA signature validation on the responses.
The paybox module also depend upon the python Cryptodome library for RSA
signature validation on the responses.
Some backends allow to specify the order and transaction ids in different
fields, in order to allow to match them in payment system backoffice. They are:

1
debian/control vendored
View File

@ -19,6 +19,7 @@ Package: python3-eopayment
Architecture: all
Depends: ${python3:Depends},
python3-zeep (>= 2.5),
python3-pycryptodome,
python3-click
Description: common API to access online payment services (Python 3)
eopayment is a Python module to interface with French's bank credit

View File

@ -27,9 +27,9 @@ from collections import OrderedDict
import pytz
import requests
from Crypto.Hash import SHA
from Crypto.PublicKey import RSA
from Crypto.Signature import PKCS1_v1_5
from Cryptodome.Hash import SHA
from Cryptodome.PublicKey import RSA
from Cryptodome.Signature import PKCS1_v1_5
from six.moves.urllib import parse as urllib
from six.moves.urllib import parse as urlparse

View File

@ -147,7 +147,7 @@ setuptools.setup(
],
packages=['eopayment'],
install_requires=[
'pycrypto >= 2.5',
'pycryptodomex',
'pytz',
'requests',
'six',