Skip to content

About

real cipher vuln cracking for educational purposes

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

Repository files navigation

WhyIsMyCipherVulnerableBro.rs

ci

"Why is my cipher vulnerable, bro?" — find out, visually, in your terminal.

A Rust TUI (built with ratatui) for exploring the math behind vulnerable and "export-grade" ciphers — the ones that quietly shipped in TLS for a decade and then got absolutely cooked in public.

Watch the attacks actually happen: birthday collisions piling up, export keys falling to factoring, fake intercepted traffic decrypting in real time.

Attack gallery

Attack What broke The math
SWEET32 3DES in TLS Birthday paradox — around 2^32 blocks in, collisions leak cookies
FREAK RSA_EXPORT keys Factoring a 512-bit "export" modulus nobody should have ever used
Logjam DHE_EXPORT Discrete log in a 512-bit group, plus a downgrade to get you there

More to come — see the roadmap.

Modes

  • Autocrack — pick a victim cipher, watch the attack run with cool visuals
  • Traffic simulator — pretend to intercept fake web traffic, then decrypt it
  • Lessons — cryptopals-style, step-by-step walk-throughs of why each cipher dies
  • Math views — graphs and matrices directly tied to the underlying math, not just pretty ASCII

Status

Pre-alpha — currently a skeleton. Roadmap:

  • Core TUI framework + navigation
  • SWEET32 demo
  • FREAK demo
  • Logjam demo
  • Traffic simulator mode
  • Autocrack mode with visuals
  • Cryptopals-style lessons
  • More fun-to-watch vulnerabilities with interesting math (suggestions welcome)

Downloads

Prebuilt binaries for Linux (x86_64), macOS (x86_64 and Apple silicon), and Windows (x86_64) are attached to every release — no Rust toolchain needed.

Getting started

Requires Rust (2024 edition); just is optional. Mouse supported: click tabs to switch modes, click list rows to select and run, click the math chart's halves to cycle samples.

cargo run    # or: just run

Development

Changes are planned with OpenSpec — see openspec/.

AI-assisted development is done with z.ai (GLM) — it doesn't refuse legitimate crypto-education content.

Why though?

Because reading "the birthday bound is 2^(n/2)" in a textbook is one thing, and watching a counter tick toward it is another. Everything here attacks simulated, local victims only — this is a teaching tool for people who want to understand why today's TLS config should not contain yesterday's mistakes.

About

real cipher vuln cracking for educational purposes

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages