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.44.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.44.0
File Size Uploaded Provenance Actions
m2crypto-0.44.0.tar.gz 363.8 kB Without provenance Details for m2crypto-0.44.0.tar.gz

Built distributions (wheels)

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

Total release size: 1.7 MB

Release files / m2crypto-0.44.0.tar.gz

Download URL m2crypto-0.44.0.tar.gz
Size 363.8 kB
Tags Source
SHA-256 checksum
How to use checksums
384bb4cbd178ee0e74015311b7b1f9f2c377e3686e03fa070b3ec2f494671c0f
BLAKE2b-256 checksum
How to use checksums
4d504a1b9dfc9a2367b10ba4ae027d5fc9e57b7694a06004932070286d4c25f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

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

Download URL M2Crypto-0.44.0-cp312-cp312-win_amd64.whl
Size 260.7 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
565805a82bfe96d4f5eff5d7abf15bfa5cb75ee80ffbf6d61ebabfa4cff88ae1
BLAKE2b-256 checksum
How to use checksums
798d4f8b591ec103a135b02ac3d1137b2fe19e8a3d6e62c86229a6dd335bcb9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

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

Download URL M2Crypto-0.44.0-cp312-cp312-win32.whl
Size 199.9 kB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
27e5ed3c891e4803023dd9d423d35039817192cf19cf72613c1edc37a9aae511
BLAKE2b-256 checksum
How to use checksums
968c904347008335fa4c0eaae274186cae8dd2d8ddad960b87ae5e3e07fb1852
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

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

Download URL M2Crypto-0.44.0-cp311-cp311-win_amd64.whl
Size 261.7 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
3827647b5da7868869f38ba9796ba08c21cea5347277ab09b54c4a1bfdfce006
BLAKE2b-256 checksum
How to use checksums
7211bf2b077c1312c1cad3b2581da3a373c1cccb20cf869a80a41743b72a40a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

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

Download URL M2Crypto-0.44.0-cp311-cp311-win32.whl
Size 200.6 kB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
1a23462ad31cc64596efec885e4449ded35136a15cbe1dc560697f94a884f4a8
BLAKE2b-256 checksum
How to use checksums
986f6d65c1159c6ee164a67bd33840fcae8833cc533c50c47456bca3a51660ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

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

Download URL M2Crypto-0.44.0-cp310-cp310-win_amd64.whl
Size 261.3 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
e4a49ecfe595ba918a3fb3620f3a7a5c64d558abbc8d67887d5a4878fce07085
BLAKE2b-256 checksum
How to use checksums
27697e79ab05f4b61524bd5547e32836743c92d4297948720eb38c6290564cd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

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

Download URL M2Crypto-0.44.0-cp310-cp310-win32.whl
Size 200.4 kB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
90f87ffe5855bd5b7807a2724ee58460610e94eaed06ca5c3a305883073757f5
BLAKE2b-256 checksum
How to use checksums
3832a5691791c70e3bc4e86b875dd4849ce7bf4b64c5394eec1cb079b2b822f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Security for M2Crypto 0.44.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.44.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