Minimal Argon2 password hashing for the AIngle ecosystem
A pure Rust implementation of the Argon2 password hashing algorithm, providing both Argon2i and Argon2d variants. This library is designed for secure password hashing and password-based key derivation within the AIngle distributed systems framework.
- Pure Rust - No C dependencies, safe and portable
- Argon2i - Side-channel resistant, recommended for password hashing
- Argon2d - Faster variant for non-interactive scenarios
- Constant-time verification - Prevents timing attacks
- Zero-on-drop - Sensitive data is securely erased from memory
Add to your Cargo.toml:
[dependencies]
argon2min = "0.1"use argon2min;
fn main() {
let password = "secure_password";
let salt = "random_salt_value";
// Argon2i - recommended for password hashing
let hash = argon2min::argon2i_simple(password, salt);
println!("Hash: {}", hex::encode(&hash));
}| Variant | Use Case | Security |
|---|---|---|
| Argon2i | Password hashing, key derivation | Side-channel resistant |
| Argon2d | Cryptocurrency, non-interactive | Faster, data-dependent |
This crate is part of the AIngle ecosystem - a Semantic DAG framework for IoT and distributed AI applications.
Licensed under the MIT License. See LICENSE for details.
Maintained by Apilium Technologies - Tallinn, Estonia