aingle-argon2 0.1.0

Pure Rust Argon2 password hashing - optimized for AIngle
Documentation
  • Coverage
  • 50%
    17 out of 34 items documented0 out of 11 items with examples
  • Size
  • Source code size: 2.64 MB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.77 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 25s Average build duration of successful builds.
  • all releases: 25s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • ApiliumCode/argon2min
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ApiliumCode

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:

[dependencies]
argon2min = "0.1"

Usage

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));
}

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.