This project demonstrates the Avalanche Effect — a fundamental property of cryptographic hash functions and ciphers. A tiny change in the input (even flipping a single bit) leads to a drastic, unpredictable change in the output.
- Implemented in Rust with a simple, clean structure
- Shows a clear demonstration of the avalanche effect
- Lightweight and easy to run
- Useful as an educational tool for understanding cryptographic principles
- Install Rust
git clone https://github.com/anisimov-anthony/avalanche_effect.git
cd avalanche_effect
cargo run --releaseThis project has comprehensive test coverage to ensure reliability and correctness.
# Run all tests
cargo test
# Run tests with output
cargo test -- --nocapture
# Run specific test
cargo test test_nameThe project maintains high level of code coverage.
Generate Coverage Report:
# Install coverage tool (one-time setup)
cargo install cargo-llvm-cov
rustup component add llvm-tools-preview
# Generate HTML coverage report
cargo llvm-cov --all-features --workspace --html
# View report at: target/llvm-cov/html/index.htmlThis project is licensed under the MIT License.
Contributions are welcome! If you’d like to improve this project, feel free to fork the repo, create a new branch, and submit a pull request.
