Skip to main content

M2Crypto

Maintainer:

Matěj Cepl

Web-Site:

https://sr.ht/~mcepl/m2crypto/

Documentation:

https://m2crypto.readthedocs.io/

Email list:

https://lists.sr.ht/~mcepl/m2crypto (subscribe via email)

Issue tracker:

https://todo.sr.ht/~mcepl/m2crypto (R/O, please report issues via the email list).

M2Crypto = Python + OpenSSL + SWIG

builds.sr.ht status

NOTE: This library is currently in maintenance mode. We recommend using a more modern alternative such as PyCA/cryptography. Examples of how to migrate can be found in the documentation.

M2Crypto is a crypto and SSL toolkit for Python.

M2 stands for “me, too!”

M2Crypto comes with the following:

  • RSA, DSA, DH, HMACs, message digests, symmetric ciphers including AES,

  • TLS functionality to implement clients and servers.

  • Example SSL client and server programs, which are variously threading, forking or based on non-blocking socket IO.

  • HTTPS extensions to Python’s httplib, urllib and xmlrpclib.

  • Unforgeable HMAC’ing AuthCookies for web session management.

  • FTP/TLS client and server.

  • S/MIME v2.

  • ZSmime: An S/MIME messenger for Zope.

We care a lot about stable API and all Python methods should be preserved, note however that m2. namespace is considered internal to the library and it doesn’t have to be preserved. If however some change to it breaks your app, let us know and we will try to make things working for you.

  • And much more.

M2Crypto is released under a very liberal MIT licence. See LICENCE for details.

To install, see the file INSTALL.

Look at the tests and demos for example use. Recommended reading before deploying in production is “Network Security with OpenSSL” by John Viega, Matt Messier and Pravir Chandra, ISBN 059600270X.

Note these caveats:

  • Possible memory leaks, because some objects need to be freed on the Python side and other objects on the C side, and these may change between OpenSSL versions. (Multiple free’s lead to crashes very quickly, so these should be relatively rare.)

  • No memory locking/clearing for keys, passphrases, etc. because AFAIK Python does not provide the features needed. On the C (OpenSSL) side things are cleared when the Python objects are deleted.

Have fun! Your feedback is welcome.

Metadata

Release files for M2Crypto 0.43.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for M2Crypto 0.43.0
File Size Uploaded Provenance Actions
m2crypto-0.43.0.tar.gz 366.8 kB Without provenance Details for m2crypto-0.43.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for M2Crypto 0.43.0
File Actions
M2Crypto-0.43.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for M2Crypto-0.43.0-cp312-cp312-win_amd64.whl
M2Crypto-0.43.0-cp312-cp312-win32.whl CPython 3.12 CPython 3.12 Windows x86-32 Details for M2Crypto-0.43.0-cp312-cp312-win32.whl
M2Crypto-0.43.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for M2Crypto-0.43.0-cp311-cp311-win_amd64.whl
M2Crypto-0.43.0-cp311-cp311-win32.whl CPython 3.11 CPython 3.11 Windows x86-32 Details for M2Crypto-0.43.0-cp311-cp311-win32.whl
M2Crypto-0.43.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for M2Crypto-0.43.0-cp310-cp310-win_amd64.whl
M2Crypto-0.43.0-cp310-cp310-win32.whl CPython 3.10 CPython 3.10 Windows x86-32 Details for M2Crypto-0.43.0-cp310-cp310-win32.whl

Total release size: 1.8 MB

Release files / m2crypto-0.43.0.tar.gz

Download URL m2crypto-0.43.0.tar.gz
Size 366.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6c2c1c7bb0e8aa768f7ca803da7dbc2666d4003b26bd7adf70233afc59d8cf33
BLAKE2b-256 checksum
How to use checksums
ff1b4771f0ecfdd9df6752ae5d0cf040545bb3cfe8a504af87e05c9ac4a6a499
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.10

Release files / M2Crypto-0.43.0-cp312-cp312-win_amd64.whl

Download URL M2Crypto-0.43.0-cp312-cp312-win_amd64.whl
Size 260.7 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
5d7002faa032ec529efdd5d1cdea2b0490e61852e533e5e5e0064a14ba16574e
BLAKE2b-256 checksum
How to use checksums
ff49a8eeaf114e0685eb1bf0f335f6f041d887e4a1f8b857b7b5e11122ac5bde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.10

Release files / M2Crypto-0.43.0-cp312-cp312-win32.whl

Download URL M2Crypto-0.43.0-cp312-cp312-win32.whl
Size 199.5 kB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
736c26b68a4bdcd92384e01af93d8386734596c84b7e702b5373457afc48b7e4
BLAKE2b-256 checksum
How to use checksums
3dcea85825c4c22fc9bfd2887fbe75fda2a1d9db27c0636f212946cf0d087275
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.10

Release files / M2Crypto-0.43.0-cp311-cp311-win_amd64.whl

Download URL M2Crypto-0.43.0-cp311-cp311-win_amd64.whl
Size 261.6 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
863e46091db3e3d03024ac9ad6be128aed2f756ab90ca8ea1f46fb4d36bde587
BLAKE2b-256 checksum
How to use checksums
40634f01f3b402a70f5d6ffc48c3f9610ab72d5cacc01946087080d4eeb26bb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.10

Release files / M2Crypto-0.43.0-cp311-cp311-win32.whl

Download URL M2Crypto-0.43.0-cp311-cp311-win32.whl
Size 200.5 kB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
d6be04b34c787133bb01427361d137034da193a6e20b270977f07f3c84587e24
BLAKE2b-256 checksum
How to use checksums
9c999ca267bb89d1540ca45d5eeff11587e5c50a1e0665669fb9631c11fb58f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.10

Release files / M2Crypto-0.43.0-cp310-cp310-win_amd64.whl

Download URL M2Crypto-0.43.0-cp310-cp310-win_amd64.whl
Size 261.2 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
17518507c6cf34181a0f018d1faae8a954a6d172522b76db51c9a7d90171c631
BLAKE2b-256 checksum
How to use checksums
14d8eedfeb19e916fb15ba85183bb662469a9c5d5136edd2a95e450226d78faa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.10

Release files / M2Crypto-0.43.0-cp310-cp310-win32.whl

Download URL M2Crypto-0.43.0-cp310-cp310-win32.whl
Size 200.3 kB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
178da718a8f81f40d0da6c129eb0869a90b9564e5e6dc56fa2563ce4d72683dd
BLAKE2b-256 checksum
How to use checksums
472e49cbe3fbba4eb580a2db0d05db06360b17017795fe85c91ea26749ef8339
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.10

Security for M2Crypto 0.43.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.43.0 This release

7 release files No provenance

0.13

0.11

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page