diff --git a/README.txt b/README.txt index 159d8b1..d50ae6c 100644 --- a/README.txt +++ b/README.txt @@ -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: diff --git a/debian/control b/debian/control index ab9ea67..35fcb60 100644 --- a/debian/control +++ b/debian/control @@ -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 diff --git a/eopayment/paybox.py b/eopayment/paybox.py index cffec55..e1d3f34 100644 --- a/eopayment/paybox.py +++ b/eopayment/paybox.py @@ -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 diff --git a/setup.py b/setup.py index c2116b8..ade430a 100755 --- a/setup.py +++ b/setup.py @@ -147,7 +147,7 @@ setuptools.setup( ], packages=['eopayment'], install_requires=[ - 'pycrypto >= 2.5', + 'pycryptodomex', 'pytz', 'requests', 'six',