512-bit · Custom Cryptographic Hash · v3 Hardened · 3D Edition

RUDRA-512

// Inspired by Lord Shiva · Built in C++ · 512-bit digest · BPE Tokenization · Embedded Salt · Asymmetric Rotations

512Bit Output
8×64State Words
32Default Rounds
~50%Avalanche
128Hex Chars
॥ The Altar of Hashing ॥

Invoke the Hash

Offer your message and sacred salt. Witness the irreversible 512-bit transformation driven by Mahadev's logic.

Digest Revealed
0.00ms
📏 Length
🧂 Salt Info
॥ The Eight Paths ॥

Architecture (v4 Parity)

01
SSI

Scattered Salt

Salt bytes are dynamically placed at independent positions via a hash-derived scatter algorithm, preventing clustering.

pos[i] = f(data_hash, salt_hash, i)
02
TPL

Token Pipeline

Buffer splits into variable-length tokens. Each undergoes a Fisher-Yates byte shuffle and rolling XOR before absorption.

shuffle(token, fisher_yates(th))
03
SHM

SipHash Mixer

A robust 2-round SipRound-inspired 64-bit mixer guarantees excellent avalanche properties for internal metadata hashing.

v1=rotl(v1,13)^v0; v3=rotl(v3,16)^v2;
04
DOM

Domain Separation

Cryptographic separation guarantees inputs hashed as strings vs files start with mathematically distinct IVs.

s[5] ^= frac(pi) * 2^64
05
WHT

State Whitening

All 8 words are XOR'd with specific constants and salt tweaks, then fully permuted to erase IV-recovery vectors entirely.

s[i] ^= WK[i] ^ rotl(salt_h, ...)
06
ASR

Asymmetric Rotations

Period-64 rotation schedule ensures all offsets are strictly within [1, 63]. No undefined behavior (UB), maximizing diffusion.

v = rotl64(v, ROUND_ROT[idx])
॥ The Dance of Nataraja ॥

Permutation Stepper

Step through the mathematical choreography of the hash. Watch the state registers evolve block by block in true 3D space.

Phase: Idle | Op:
Press Initialize State to load the current input into the stepper.
॥ The Third Eye's Glare ॥

Avalanche Effect

A single altered bit creates cosmic chaos. Modify the inputs below and observe the Strict Avalanche Criterion (SAC) targeting ~50% bit flip.

॥ The Cosmic Trial ॥

Benchmark & Security

Algorithm Bit Freq (0/1) Entropy Avalanche Speed (H/s) Collisions
Rudra-512 (Divine) 50.025% 1.000000 50.130% 142,500* 0
SHA-512 49.737% 0.999980 49.719% 860,149 0
SHA3-512 49.658% 1.000000 50.140% 653,170 0

* Rudra-512 is intentionally compute-heavy. The Scattered Salt Injection, Tokenization Pipeline, and Full-Round Whitening serve as deliberate deterrents to ASIC/GPU brute-forcing, acting akin to key-stretching functions while remaining a general-purpose hash.