#password-hashing #phf

no-std argon2

Pure Rust implementation of the Argon2 password hashing function with support for the Argon2d, Argon2i, and Argon2id algorithmic variants

22 releases

Uses new Rust 2024

0.6.0-rc.5 Dec 13, 2025
0.6.0-rc.2 Nov 6, 2025
0.6.0-rc.0 May 31, 2025
0.6.0-pre.1 Jul 27, 2024
0.0.0 Feb 28, 2017

#3 in Authentication

Download history 180079/week @ 2025-09-27 191318/week @ 2025-10-04 189086/week @ 2025-10-11 189077/week @ 2025-10-18 200531/week @ 2025-10-25 204547/week @ 2025-11-01 209337/week @ 2025-11-08 215041/week @ 2025-11-15 212161/week @ 2025-11-22 237223/week @ 2025-11-29 252408/week @ 2025-12-06 253580/week @ 2025-12-13 187724/week @ 2025-12-20 184508/week @ 2025-12-27 267611/week @ 2026-01-03 293138/week @ 2026-01-10

976,444 downloads per month
Used in 1,304 crates (519 directly)

MIT/Apache

72KB
1.5K SLoC

RustCrypto: Argon2

crate Docs Build Status Apache2/MIT licensed Rust Version Project Chat

Pure Rust implementation of the Argon2 password hashing function.

About

Argon2 is a memory-hard key derivation function chosen as the winner of the Password Hashing Competition in July 2015.

It implements the following three algorithmic variants:

  • Argon2d: maximizes resistance to GPU cracking attacks
  • Argon2i: optimized to resist side-channel attacks
  • Argon2id: (default) hybrid version combining both Argon2i and Argon2d

Support is provided for embedded (i.e. no_std) environments, including ones without alloc support.

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.4MB
~31K SLoC