#password-hashing #phf #hashing

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

11 unstable releases

Uses new Rust 2024

new 0.6.0-rc.0 Dec 13, 2025
0.6.0-pre.1 Jul 27, 2024
0.6.0-pre.0 Feb 8, 2024
0.5.0 Mar 5, 2023
0.1.0 Dec 28, 2020

#178 in Authentication

Download history 2973/week @ 2025-08-24 2913/week @ 2025-08-31 3098/week @ 2025-09-07 4088/week @ 2025-09-14 4717/week @ 2025-09-21 4621/week @ 2025-09-28 3110/week @ 2025-10-05 4246/week @ 2025-10-12 3433/week @ 2025-10-19 4039/week @ 2025-10-26 4807/week @ 2025-11-02 7046/week @ 2025-11-09 6712/week @ 2025-11-16 6197/week @ 2025-11-23 4300/week @ 2025-11-30 2519/week @ 2025-12-07

19,954 downloads per month
Used in 22 crates (8 directly)

MIT/Apache

23KB
414 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.

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

~0.8–1.1MB
~26K SLoC