/cpr

Cryptopals + Rust!

Primary LanguageRust

❤️‍🩹 cpr 🔓

Solutions for CryptoPals in Rust.

Setup

  • Use nix and run nix-shell
  • Run cp hooks/pre-commit .git/hooks/
  • (Optional) run rm src/bin/??.rs && echo > src/utils.rs to remove solutions

Usage

  • Run (fast) tests: cargo test
  • Run the test watcher: cargo watch -x test or cargo tdd <number>
  • Run an individual challenge: cargo solve <number>
  • Scaffold a new challenge: cargo scaffold <number>