#authentication #pake #crypto

srp

Secure Remote Password (SRP) protocol implementation

15 releases

0.6.0 Jan 22, 2022
0.5.0 Oct 7, 2020
0.4.3 Nov 7, 2019
0.4.0 Dec 20, 2018
0.2.4 Nov 1, 2017

#4 in #pake

Download history 8/week @ 2023-11-26 7/week @ 2023-12-10 8/week @ 2023-12-17 4/week @ 2023-12-24 6/week @ 2024-01-07 23/week @ 2024-01-14 15/week @ 2024-01-28 8/week @ 2024-02-04 1/week @ 2024-02-11 68/week @ 2024-02-18 31/week @ 2024-02-25 32/week @ 2024-03-03 18/week @ 2024-03-10

149 downloads per month
Used in hap

MIT/Apache

26KB
318 lines

RustCrypto: SRP

crate Docs Apache2/MIT licensed Rust Version Project Chat Build Status

Pure Rust implementation of the Secure Remote Password password-authenticated key-exchange algorithm.

Documentation

About

This implementation is generic over hash functions using the Digest trait, so you will need to choose a hash function, e.g. Sha256 from sha2 crate.

Additionally this crate allows to use a specialized password hashing algorithm for private key computation instead of method described in the SRP literature.

Compatibility with other implementations has not yet been tested.

⚠️ Security Warning

This crate has never received an independent third party audit for security and correctness.

USE AT YOUR OWN RISK!

Minimum Supported Rust Version

Rust 1.56 or higher.

Minimum supported Rust version can be changed in the future, but it will be done with a minor version bump.

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1MB
~19K SLoC