Generate SHA-256 hash in Python 2.4 using M2Crypto

Is it possible to generate SHA-256 hash using M2Crypto? The Python 2.4 SHA module does not support 256, so I started using PyCrypto to find out that PyCrypto does not support PKCS # 5 (needed elsewhere in my project.) As a result, I switched to M2Crypto, and now I would like to replace my PyCrypto SHA call -256 equivalent of M2Crypto ... I tried to look in unit tests, but did not see anything.

+3
source share
1 answer

You can download the hashlibPython 2.5 module (supports SHA256) for use on older Python (e.g. Python 2.4).

+6
source

Source: https://habr.com/ru/post/1767074/


All Articles