aingle-argon2

Crates.ioaingle-argon2
lib.rsaingle-argon2
version0.1.0
created_at2025-12-17 07:59:26.274361+00
updated_at2025-12-17 07:59:26.274361+00
descriptionPure Rust Argon2 password hashing - optimized for AIngle
homepagehttps://apilium.com
repositoryhttps://github.com/ApiliumCode/argon2min
max_upload_size
id1989525
size2,644,165
Apilium (ApiliumCode)

documentation

https://docs.rs/aingle-argon2

README

AIngle Logo

argon2min

Minimal Argon2 password hashing for the AIngle ecosystem

Crates.io Documentation License CI Status


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.


Maintained by Apilium Technologies - Tallinn, Estonia

Commit count: 0

cargo fmt