#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

#160 in Authentication

Download history 777/week @ 2024-08-01 407/week @ 2024-08-08 459/week @ 2024-08-15 389/week @ 2024-08-22 751/week @ 2024-08-29 843/week @ 2024-09-05 738/week @ 2024-09-12 725/week @ 2024-09-19 1252/week @ 2024-09-26 1575/week @ 2024-10-03 1310/week @ 2024-10-10 1208/week @ 2024-10-17 1586/week @ 2024-10-24 1443/week @ 2024-10-31 1207/week @ 2024-11-07 1282/week @ 2024-11-14

5,703 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

~605KB
~14K SLoC