#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

#154 in Authentication

Download history 877/week @ 2024-07-21 1227/week @ 2024-07-28 454/week @ 2024-08-04 518/week @ 2024-08-11 403/week @ 2024-08-18 475/week @ 2024-08-25 810/week @ 2024-09-01 790/week @ 2024-09-08 749/week @ 2024-09-15 857/week @ 2024-09-22 1732/week @ 2024-09-29 1194/week @ 2024-10-06 1360/week @ 2024-10-13 1495/week @ 2024-10-20 1361/week @ 2024-10-27 1466/week @ 2024-11-03

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