512-bit  ·  Custom Cryptographic Hash  ·  v3 Hardened

RUDRA-512 RUDRA-512 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
Descend
Interactive Hash Computer — v3 Hardened
Compute Rudra-512
Enter any message to see the 512-bit digest in real-time, secured by Lord Shiva's architecture.
Rudra-512 v3 Digest — 128 hex chars = 512 bits
📏
🧂
Algorithm
How It Works — v3
Eight hardened cryptographic phases with novel constructions that provide absolute resistance against known cryptanalytic attack vectors.
STEP 01 NC4
BPE-Inspired Tokenization
Input tokenized before hashing. Variable-length tokens based on frequency analysis. Prevents trivial bit-pattern manipulation attacks.
seed = simple_hash(input) token_len = 1 + ((seed >> 8) % 16) tokens = split(input, token_len)
STEP 02 NC5
Embedded Salt Positioning
Salt embedded at a deterministic position, not prepended. Position computed from hash(salt) + hash(input). Prevents prefix and dictionary attacks.
pos = (hash(salt) + hash(input)) % (total_len - salt_len) embed salt at pos in stream
STEP 03 NC6
State Whitening
After initial state setup, perform one pre-absorption permutation. Prevents IV-recovery attacks with input-independent initialization divergence.
init_state(rounds, salt_hash) whiten_state(s) // 2 rounds // diverges before any input
STEP 04 NC7
Asymmetric Rotations
Rotation schedule includes per-word asymmetric offsets. Word-round dependent rotations increase diffusion rate dramatically.
rot = (ROUND_ROT[(i*5+r*9)%64] + (i ^ r)) % 64 v = rotl64(v, rot) // asymmetric
STEP 05 NC8
Variable Block Order
Block indices XORed with hash(salt) before use in tweak. Prevents block reordering attacks and sequential block exploits.
obf_idx = block_idx ^ salt_hash tweak = rotl(obf_idx + j + s[j], ROT[j%8])
STEP 06 C1
Non-linear Absorption
State-dependent tweak: s[j] placed inside rotl argument — algebraically non-cancellable. Prevents meet-in-the-middle attacks.
tweak = rotl(obf_idx+j+s[j], ROT[j]) s[j] ^= word ^ tweak
STEP 07 C3
Snapshot Permutation
Full state snapshot per round eliminates sequential-update asymmetry. Period-64 rotation schedule per word for maximum diffusion.
old = s[:] v = old[i]^rotl(old[(i+mix)%8],ROT[i]) v = rotl(v, ROUND_ROT[…]+(i^r)) s[i] = v
STEP 08 C2
Finalisation
After all blocks absorbed: final permutation for full round count (min 1). State serialised as 16-char zero-padded hex — 128 chars total.
permute(state, rounds) digest = hex(s[0..7]) // 128 chars
Permutation Stepper
Round-by-Round Animation
Steps through the exact operations of the v3 permute() function with asymmetric rotations. Hash matches output above exactly.
Phase:  |  Round:  |  Word:  |  Op:
Click Step Forward to begin stepping through the Rudra-512 v3 pipeline
Avalanche Effect Demo
1-Bit Change → ~50% Different Output
Modify a single character and watch ~50% of bits flip. Changed bits highlight vividly.
Benchmark
Rudra-512 v3 vs SHA-512 vs SHA3-512
AlgorithmBit FreqRuns EntropyAvalancheSpeed (h/s)Collisions
Rudra-512 v3 50.0254%0.500270 1.00000050.1301% 142,500None
SHA-512 49.7373%0.5021090.999980 49.7192%860,149None
SHA3-512 49.6582%0.4965821.000000 50.1404%653,170None

* v3 is intentionally slower — BPE tokenization + state whitening add overhead for GPU brute-force resistance.
* Adds NC4–NC8: BPE tokenization, embedded salt positioning, state whitening, asymmetric rotations, variable block order.

Features
512-bit output BPE Tokenization Embedded Salt State Whitening Asymmetric Rotations Block Obfuscation Configurable rounds File hashing Python bindings Node.js bindings CLI tools Data integrity v3 Hardened Snapshot Permutation Period-64 Rotations Non-linear Absorb