ccavenue

Correctly migrate from Python 2 md5 library to Python 3 hashlib

Correctly migrate from Python 2 md5 library to Python 3 hashlib Question: I’m trying to integrate a 3rd party payment gateway (CCAvenue) in Django 1.11, Python 3.5.2 The reference code provided by the 3rd party uses the deprecated library md5 to encrypt texts. from Crypto.Cipher import AES import md5 def pad(data): length = 16 – …

Total answers: 2