Skip to content

anisimov-anthony/avalanche_effect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Avalanche Effect

CI codecov License: MIT

Program Demo

About the Project

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.

Features

  • 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

Prerequisites

Installation & Run

git clone https://github.com/anisimov-anthony/avalanche_effect.git
cd avalanche_effect
cargo run --release

Testing

This project has comprehensive test coverage to ensure reliability and correctness.

Run Tests

# Run all tests
cargo test

# Run tests with output
cargo test -- --nocapture

# Run specific test
cargo test test_name

Code Coverage

The 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.html

License

This project is licensed under the MIT License.

Contribution

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.

About

Rust TUI demonstrating the avalanche effect in cryptographic hash functions - how a single bit change drastically alters the output

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages