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

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

9 releases (5 breaking)

0.6.0-pre.0 Feb 8, 2024
0.5.0 Mar 5, 2023
0.4.0 Mar 18, 2022
0.3.2 Dec 7, 2021
0.1.0 Dec 28, 2020

#49 in Authentication

Download history 232/week @ 2023-12-23 409/week @ 2023-12-30 604/week @ 2024-01-06 401/week @ 2024-01-13 467/week @ 2024-01-20 457/week @ 2024-01-27 471/week @ 2024-02-03 477/week @ 2024-02-10 463/week @ 2024-02-17 606/week @ 2024-02-24 448/week @ 2024-03-02 596/week @ 2024-03-09 820/week @ 2024-03-16 559/week @ 2024-03-23 552/week @ 2024-03-30 369/week @ 2024-04-06

2,409 downloads per month
Used in 5 crates

MIT/Apache

31KB
601 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

~585KB
~13K SLoC