crypto-srp: SRP authentication primitives

[ bsd3, cryptography, library ] [ Propose Tags ] [ Report a vulnerability ]

A library providing primitives for the Secure Remote Password (SRP) protocol.

It includes the core SRP computation — public key exchange, premaster secret derivation, client/server proof generation and verification — along with the standard prime groups from RFC 5054 Appendix A, a hash algorithm abstraction covering SHA1, SHA256, SHA384 and SHA512, and cryptographically random private key generation.


[Skip to Readme]

Flags

Manual Flags

NameDescriptionDefault
pysrp

Enable pysrp compatibility tests (requires Python 3 with srp package)

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1
Change log ChangeLog.md
Dependencies base (>=4.12 && <5), bytestring (>=0.10.8 && <0.11 || >=0.11.3 && <0.13), cryptohash-sha1 (>=0.11 && <0.12), cryptohash-sha256 (>=0.11 && <0.12), cryptohash-sha512 (>=0.11 && <0.12), entropy (>=0.3.7 && <0.5), fmt (>=0.6.3 && <0.8), text (>=1.2.3 && <2.2), unicode-transforms (>=0.3 && <0.5) [details]
Tested with ghc ==8.10.7, ghc ==9.0.2, ghc ==9.2.8, ghc ==9.4.8, ghc ==9.6, ghc ==9.8, ghc ==9.10, ghc ==9.12
License BSD-3-Clause
Author Tim Emiola
Maintainer adetokunbo@emio.la
Uploaded by adetokunbo at 2026-07-05T04:51:27Z
Category Cryptography
Distributions
Downloads 0 total (0 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-07-05 [all 1 reports]

Readme for crypto-srp-0.1.0.1

[back to package description]

crypto-srp

crypto-srp provides primitives for the Secure Remote Password (SRP) protocol.

It includes:

  • Crypto.SRP — core SRP computation: public key exchange, premaster secret derivation, client/server proof generation and verification
  • Crypto.SRP.Constants — standard large prime groups (1024–8192 bits) from RFC 5054 Appendix A
  • Crypto.SRP.Hashing — hash algorithm abstraction (SHA1, SHA256, SHA384, SHA512) used throughout the SRP calculation
  • Crypto.SRP.PrimeGroup — prime group representation and byte-string encoding
  • Crypto.SRP.Random — cryptographically random private key generation