The ANCH Pipeline
Seven modular stages transform raw input into a secure, reproducible 256-bit digest. Hover on any node to dissect the engine.
Engineered for Chaos & Adaptability
ANCH decouples fixed structures by dynamically altering hash schedules based on the features of the data itself.
Neural Parameter Generation
A lightweight, dependency-free pseudo-neural transform derives every hash parameter from the input's feature vector — seed, chaos r-value, rotation schedule, and compression key.
Two dense linear layers with LCG-derived weights map a 134-float feature vector to 16 control control values. No external ML framework required.
Chaos Theory Engine
A multi-attractor chaos generator leveraging the chaotic regimes of Logistic, Tent, and Hénon maps to produce a pseudo-random byte stream extremely sensitive to initial states.
Adaptive selector triggers Logistic Map, Tent Map, or Hénon Map dynamically based on neural seed (seed % 3). Integrated periodic boundary wrapping.
Dynamic Permutation
Chaos-seeded Fisher-Yates shuffle reorders every bit in the state, while word-level rotation adds diffusion. A single input-bit change cascades across the entire 256-bit output.
Combines bit-level and word-level permutation in a single round for maximum diffusion with acceptable performance.
Multi-round Compression
4–16 Feistel-style compression rounds (count determined by neural parameters) mix the 64-byte state. Each round features a dynamically generated S-Box mapping.
Combines Fisher-Yates dynamic S-Box generation using chaos bytes, Feistel mixing, butterfly cross-mixing, and a final fold to collapse 64→32 bytes.
Feature Extraction
Extracts a rich 134-float feature vector from raw input: length, Hamming weight, Shannon entropy, byte-frequency distribution, mean, variance, and bigram hashes.
Optional NumPy acceleration provides 5x faster vectorized operations on large payloads, while preserving standard library pure-Python fallback.
Built-in Benchmark Suite
BenchmarkSuite runs avalanche, entropy, collision, runtime, and SHA-256 comparison benchmarks with configurable sample counts and pretty console reporting.
Single-bit flip avalanche test, Shannon entropy distribution across random inputs, Fisher-Yates collision detection, per-size throughput.
Full CLI & HMAC API
Full CLI access to hash, verify, avalanche, entropy, and benchmark tools, paired with HMAC-ANCH support for keyed message authentication.
Added hmac_anch(key, message) and hmac_anch_verify(key, message, mac) with constant-time verification for secure integrity checks.
Zero Runtime Dependencies
The entire ANCH core is implemented in pure Python 3.12 stdlib — no NumPy, no cryptography library, no external packages. Just install and go.
Optional: rich for colored benchmark output. Web interface runs benchmark over connected local REST API.
Try ANCH Right Now
Interactive cryptography testing. Tune parameters or connect the backend to witness the real-time neural network parameter generator.
Performance Analysis
Transparency about mathematical trade-offs. ANCH trades raw microsecond speed for cryptographic adaptability.
The Mathematical Overhead
Install & Integrate
Zero dependencies. Zero system bloat. Fully compatible with Python 3.12 and newer environments.
Engineered for Modern Enterprise Scenarios
Where We're Headed
ANCH is evolving from a mathematical concept into an enterprise-ready adaptive cryptographic engine.
- Core Hash Engine (feature → neural → chaos → permutation → compression)
- Pure Python 3.12, zero runtime dependencies
- Public API: hash, verify, hash_file, avalanche, entropy, collision_test
- Full CLI interface (anch hash, anch benchmark, …)
- Comprehensive test suite (pytest)
- pyproject.toml setup, pip-installable
- Interactive showcase website
- Benchmark Suite interactive dashboard UI
- REST API (FastAPI + Uvicorn) — POST /hash, /verify, /benchmark
- Online Playground (server-side real ANCH hashing)
- Performance: NumPy-accelerated feature extraction
- MkDocs documentation site (Material theme)
- GitHub Actions automated CI/CD pipeline
- Multi-Chaotic Engine: Tent Map + Hénon Map
- Adaptive Attractor selection (seed % 3)
- Streaming hashing for large files / data pools
- Dynamic S-Box key-schedule generation
- HMAC-ANCH authentication mode support
- Language bindings: JS/WASM or Rust ports
- Full public framework production release
- Complete developer SDK stable release