oscrypto
TLS (SSL) sockets, key generation, encryption, decryption, signing, verification and KDFs using the OS crypto libraries. Does not require a compiler, and relies on the OS for patching. Works on Windows, OS X and Linux/BSD.
Install
oscrypto on PyPI
pip
pip install oscryptouv
uv add oscryptopoetry
poetry add oscryptoPackage facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — asn1crypto |
| Maintenance | actively maintained — 1,609 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: oscrypto-1.3.0-py2.py3-none-any.whl
Keywords: crypto, pki, tls, ssl, x509, certificate, encrypt, decrypt, sign, verify, rsa, dsa, ec, dh
About oscrypto
from the package's own PyPI description — quoted content, verbatim
oscrypto
A compilation-free, always up-to-date encryption library for Python that works on Windows, OS X, Linux and BSD. Supports the following versions of Python: 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10 and pypy.
- Supported Operating Systems
- Features
- Why Another Python Crypto Library?
- Related Crypto Libraries
- Current Release
- Dependencies
- Installation
- License
- Documentation
- Continuous Integration
- Testing
- Development
- CI Tasks
GitHub Actions CI (image) CircleCI (image) PyPI (image)
Supported Operating Systems
The library integrates with the encryption library that is part of the...
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
oscrypto provides TLS sockets, key generation, encryption, decryption, signing, and verification using the operating system's native crypto libraries, requiring no compiler and relying on the OS for security patching.
Installation is straightforward with low friction—a pure-Python wheel with only asn1crypto as a runtime dependency. The project maintains active status with recent commits, though the latest release was in March 2022, over four years ago.
MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary contexts with minimal obligations beyond attribution.
Usage
pip install oscrypto
import oscrypto
from oscrypto import asymmetric
public_key, private_key = asymmetric.generate_pair('rsa', 2048)
Requires the operating system's native crypto library (CNG/Secure Channel on Windows, Security.framework on macOS, or OpenSSL/LibreSSL on Linux/BSD) to be available; does not bundle its own.
Verdict: oscrypto is a mature, permissively licensed cryptography library suited for applications needing TLS, key management, and X.509 integration without compilation overhead. Its reliance on OS crypto libraries is a strength for security patching but a constraint for environments without native crypto support. No known vulnerabilities and active maintenance make it reliable for legacy and modern systems alike, though the 2022 release date warrants verification of ongoing support.
Needs verification
- Whether the project remains actively maintained beyond the last commit date shown, or if it is in maintenance-only mode
- Compatibility with Python 3.11+ given the latest classifier is 3.10
- Real-world adoption patterns and whether newer alternatives are preferred for new projects
Similar packages
permissive · top 1,000 on PyPI
pyOpenSSLpermissive · top 1,000 on PyPI
argparsepermissive · top 1,000 on PyPI
rsapermissive · top 1,000 on PyPI
cryptographypermissive · top 100 on PyPI
mockpermissive · top 1,000 on PyPI
pycryptodomepermissive · top 1,000 on PyPI
pycryptodomexpermissive · top 1,000 on PyPI
certificopyleft · top 100 on PyPI
ecdsapermissive · top 1,000 on PyPI