Overview
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.
Features
- 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
Installation
Add to your Cargo.toml:
[]
= "0.1"
Usage
use argon2min;
Variants
| Variant | Use Case | Security |
|---|---|---|
| Argon2i | Password hashing, key derivation | Side-channel resistant |
| Argon2d | Cryptocurrency, non-interactive | Faster, data-dependent |
Part of AIngle
This crate is part of the AIngle ecosystem - a Semantic DAG framework for IoT and distributed AI applications.
References
License
Licensed under the MIT License. See LICENSE for details.