No description
Find a file
2026-04-22 23:20:54 -04:00
.direnv/bin it's a flake now 2026-04-22 22:58:25 -04:00
src actually make the secret 2026-04-22 23:04:56 -04:00
.gitignore working 2026-04-22 22:44:22 -04:00
Cargo.lock working 2026-04-22 22:44:22 -04:00
Cargo.toml it's a flake now 2026-04-22 22:58:25 -04:00
default.nix actually make the secret 2026-04-22 23:04:56 -04:00
flake.lock it's a flake now 2026-04-22 22:58:25 -04:00
flake.nix it's a flake now 2026-04-22 22:58:25 -04:00
README.md add readme 2026-04-22 23:20:54 -04:00

toy Diffie-Hellman key exchange

Only works for ~most 32 bit unsigned-integers.

nix run git+https://git.pyrope.net/mbk/diffie-hellman

Run with

  • 0 arguments to generate a public p and g
  • 2 arguments (p and g) to generate the public g^a mod p
  • 3 arguments (p, g, and g^b mod p) to generate the final shared secret

a is provided with a passwordlike input. You have to make your own a, sorry