| Crates.io | ultra_hash_0x |
| lib.rs | ultra_hash_0x |
| version | 0.1.2 |
| created_at | 2025-11-29 09:52:52.684647+00 |
| updated_at | 2025-11-29 10:34:06.411309+00 |
| description | UltraHash-0x: A fast, 64/128-bit hashing engine created by Seleste Scorpion (God Ace). |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1956524 |
| size | 9,245,019 |
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.
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"