ultra_hash_0x

Crates.ioultra_hash_0x
lib.rsultra_hash_0x
version0.1.2
created_at2025-11-29 09:52:52.684647+00
updated_at2025-11-29 10:34:06.411309+00
descriptionUltraHash-0x: A fast, 64/128-bit hashing engine created by Seleste Scorpion (God Ace).
homepage
repository
max_upload_size
id1956524
size9,245,019
(seleste3580-dev)

documentation

README

UltraHash-0x

UltraHash-0x is a fast, flexible, and secure Rust hashing library designed for modern applications. It supports multiple hash sizes (64-bit, 128-bit, 256-bit, and 512-bit), seeded hashing, keyed hashing, and advanced configuration for secure data processing.


Features

  • Multi-size hashing: Generate 64, 128, 256, or 512-bit hashes from the same engine.
  • Seed & Key support: Customize the hash output using a seed and optional key.
  • Secure mode: Enable additional cryptographic mixing for sensitive applications.
  • High performance: Optimized engine for speed and reliability.
  • Cloneable & Debuggable: Easily duplicate hashers and inspect internal state.
  • Flexible API: Simple yet powerful interface for Rust projects.

Usage by Example

use ultra_hash_0x::UltraHasher;

fn main() {
    let data = b"God Ace is unstoppable";

    // Create a hasher with a seed and optional key, and enable secure mode
    let h = UltraHasher::new(0xDEADBEEF)
        .secure(true)
        .key(0x12345678);

    // 64-bit hash
    let mut h64 = h.clone();
    h64.update(data);
    println!("64-bit: {:016x}", h64.finalize64());

    // 128-bit hash
    let mut h128 = h.clone();
    h128.update(data);
    let (hi, lo) = h128.finalize128();
    println!("128-bit: {:016x}{:016x}", hi, lo);

    // 256-bit hash
    let mut h256 = h.clone();
    h256.update(data);
    println!("256-bit: {:?}", h256.finalize256());

    // 512-bit hash
    let mut h512 = h.clone();
    h512.update(data);
    println!("512-bit: {:?}", h512.finalize512());
}

---

## Installation

Add UltraHash-0x to your `Cargo.toml`:

```toml
[dependencies]
ultra_hash_0x = "0.1.0"

Commit count: 0

cargo fmt