#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

#118 in Authentication

Download history 338/week @ 2023-12-20 237/week @ 2023-12-27 579/week @ 2024-01-03 521/week @ 2024-01-10 417/week @ 2024-01-17 462/week @ 2024-01-24 493/week @ 2024-01-31 458/week @ 2024-02-07 504/week @ 2024-02-14 469/week @ 2024-02-21 582/week @ 2024-02-28 448/week @ 2024-03-06 811/week @ 2024-03-13 687/week @ 2024-03-20 474/week @ 2024-03-27 510/week @ 2024-04-03

2,632 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