#password-hashing #password-hash #hashing #password #string-format #phf

no-std sha-crypt

Pure Rust implementation of the SHA-crypt password hash based on SHA-512 as implemented by the POSIX crypt C library

10 releases (5 breaking)

0.6.0-pre.1 Jul 27, 2024
0.6.0-pre.0 Feb 8, 2024
0.5.0 Mar 5, 2023
0.4.0 Mar 18, 2022
0.1.0 Dec 28, 2020

#163 in Authentication

Download history 400/week @ 2024-08-19 503/week @ 2024-08-26 841/week @ 2024-09-02 817/week @ 2024-09-09 680/week @ 2024-09-16 986/week @ 2024-09-23 1728/week @ 2024-09-30 1265/week @ 2024-10-07 1214/week @ 2024-10-14 1564/week @ 2024-10-21 1297/week @ 2024-10-28 1471/week @ 2024-11-04 1085/week @ 2024-11-11 1221/week @ 2024-11-18 1568/week @ 2024-11-25 1528/week @ 2024-12-02

5,511 downloads per month
Used in 8 crates (6 directly)

MIT/Apache

31KB
585 lines

RustCrypto: SHA-crypt password hash

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

Pure Rust implementation of the SHA-crypt password hash based on SHA-512, a legacy password hashing scheme supported by the POSIX crypt C library.

Password hashes using this algorithm start with $6$ when encoded using the PHC string format.

Documentation

Minimum Supported Rust Version

Rust 1.60 or higher.

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

SemVer Policy

  • All on-by-default features of this library are covered by SemVer
  • MSRV is considered exempt from SemVer as noted above

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

~610KB
~14K SLoC