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.42.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.42.0
File Size Uploaded Provenance Actions
m2crypto-0.42.0.tar.gz 240.1 kB Without provenance Details for m2crypto-0.42.0.tar.gz

Built distributions (wheels)

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

Total release size: 1.6 MB

Release files / m2crypto-0.42.0.tar.gz

Download URL m2crypto-0.42.0.tar.gz
Size 240.1 kB
Tags Source
SHA-256 checksum
How to use checksums
42b62df2caf623161b1d643a7235464c2fe2a3105049ebc498a6d47dc08f64b4
BLAKE2b-256 checksum
How to use checksums
859fb8977ce2971cf5f823db3fdb31e7e061b9662da318a17b6bf0c653f84aee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.9

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

Download URL M2Crypto-0.42.0-cp312-cp312-win_amd64.whl
Size 259.5 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
940072e44f7e9064eed0aa654885e6688f91c441eb4212cc62e61caa252406f6
BLAKE2b-256 checksum
How to use checksums
00b91ed52ef8cb7988dd04854d85260f88dbbcc8f1d74485d1e61804a5a18a63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.9

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

Download URL M2Crypto-0.42.0-cp312-cp312-win32.whl
Size 199.1 kB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
76b4a53a5a6fc86cb43d9dad533d13ed247f030a8eb65ff308f2981647a7f626
BLAKE2b-256 checksum
How to use checksums
c3471048b6887f2dd5e20b7a9ea044134bd19fcc3b53ad39e09098cd3a09bff5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.9

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

Download URL M2Crypto-0.42.0-cp311-cp311-win_amd64.whl
Size 260.4 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
d31d1c42e6ee2e0c65bf0a3a679927b31bfff0a7f853b8ff3ccaf4ffe1ece309
BLAKE2b-256 checksum
How to use checksums
12edf37f641c9acecb5c5396d9b2f7547e1cec024d27786beb9535ceca7fa3f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.9

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

Download URL M2Crypto-0.42.0-cp311-cp311-win32.whl
Size 199.0 kB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
5c057df9fa03467daa046c9a586fe02a56aff74f9d690b52e2672345cbdfc5d3
BLAKE2b-256 checksum
How to use checksums
5e5d114bb0be506826ba7cd7eebc77a9e7e7b432e573c0bb9263b37d2253f558
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.9

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

Download URL M2Crypto-0.42.0-cp310-cp310-win_amd64.whl
Size 260.2 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
08b7a6f81d4a2cfe3fae98f7c167c4a09d034b36e5f6f82919e858a743da36b5
BLAKE2b-256 checksum
How to use checksums
1755191de93321328cf417dcfa3d4434de34012f9dc283b707f77ae6247856bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.9

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

Download URL M2Crypto-0.42.0-cp310-cp310-win32.whl
Size 199.1 kB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
e070503435e8076fbbe411fe8360bf942420d3fc9c706174dd278d6c3e85aa34
BLAKE2b-256 checksum
How to use checksums
97f9b33ac8ab2332585aa712018c2049aee27e01292ee7d6f1a86e42ed1627fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.9

Security for M2Crypto 0.42.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.42.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