srp
Secure Remote Password
What it is and what it does
SRP is a cryptographic authentication protocol that allows a client and server to verify each other's knowledge of a password without transmitting the password itself or relying on a trusted certificate authority. Unlike SSL/TLS or Kerberos, SRP derives server-side verification keys directly from user passwords, making it useful for systems where external infrastructure is unavailable or undesirable. The protocol provides mutual authentication—both sides must possess the correct password or key material for authentication to succeed—and produces a shared cryptographic key that can be used for subsequent symmetric encryption.
The srp package provides a Python implementation of this protocol. It depends only on six, making it lightweight and easy to integrate. The package is marked Production/Stable and has been in active development since 2011, though recent maintenance is minimal. It is suitable for applications that need password-based authentication without certificate management overhead, though you should verify that SRP meets your security and compatibility requirements before deploying it.
Use it for:
- Authenticate users in a custom application without setting up a certificate authority or external key server
- Implement mutual authentication between a client and server over an untrusted network connection
- Derive a shared encryption key from a password for symmetric-key encryption of subsequent communication
- Build authentication systems for embedded or isolated environments where certificate infrastructure is impractical
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Implements the Secure Remote Password (SRP) protocol for password-based mutual authentication over insecure networks without relying on external certificate infrastructure.
Yes, if you need SRP-based authentication and have verified that SRP meets your security requirements. The package is stable, has no known vulnerabilities, and installs easily with minimal dependencies. However, dormant maintenance (no releases in 651 days) means security updates or bug fixes may be slow; evaluate whether the protocol itself and this implementation align with your threat model before adopting it.
Install
srp on PyPI
pip
pip install srpuv
uv add srppoetry
poetry add srpInstalling srp
Before you install
Low friction installation with a single lightweight dependency (six). Maintenance is dormant—last commit was 2024-11-05 and no releases in 651 days—but the repository remains active and the package is marked Production/Stable.
License in practice
Licensed under MIT (permissive), so you can use, modify, and distribute the package freely in commercial or private projects with minimal restrictions.
Quickstart
pip install srp
import srp
# Create a user verifier and authentication session
user = srp.User(username, password)
verifier = user.get_verifier()
# Server and client exchange SRP messages to authenticate
Verify before relying
- Whether the package supports modern Python versions (requires_python is unspecified in the fact sheet)
- Whether SRP is suitable for contemporary security standards or if it has known limitations relative to modern alternatives
- Performance characteristics and typical use-case scale (e.g., throughput, latency)
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — six |
| Maintenance | dormant — 651 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 109,575/month — #12,509 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: srp-1.0.22-py3-none-any.whl
Tags
More Security packages
Provides Python bindings to the FreeDesktop.org…
permissive · top 1,000 on PyPI
msalMSAL for Python handles OAuth2 and OpenID…
permissive · top 1,000 on PyPI
joserfcjoserfc implements JOSE standards (JWS, JWE,…
permissive · top 1,000 on PyPI
AuthlibAuthlib provides a complete implementation of…
permissive · top 1,000 on PyPI
argon2-cffi-bindingsProvides low-level CFFI bindings to the…
permissive · top 1,000 on PyPI
adalADAL for Python authenticates applications with…
permissive · top 1,000 on PyPI
srptoolsImplements Secure Remote Password (SRP)…
permissive · top 15,000 on PyPI
secure-smtplibProvides secure SMTP subclasses with TLS/SSL…
unclear · top 15,000 on PyPI
asyauthProvides unified authentication handling across…
unclear · top 15,000 on PyPI
pypsrpExecute commands, scripts, and file operations…
permissive · top 5,000 on PyPI
service-identityVerifies that cryptography or pyOpenSSL…
permissive · top 5,000 on PyPI
requests-kerberosAdds Kerberos/GSSAPI authentication support to…
permissive · top 5,000 on PyPI
spake2Implements SPAKE2, a password-authenticated key…
permissive · top 15,000 on PyPI
snitunSniTun is an SNI proxy with TCP multiplexer…
copyleft · top 15,000 on PyPI
requests-gssapiAdds GSSAPI/Kerberos authentication support to…
permissive · top 15,000 on PyPI
acmeImplements the ACME protocol to automate…
permissive · top 5,000 on PyPI