sagarwani / Breaking-Diffie-Hellman

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

  1. A brute-force algorithm that simply tries every possibly x.
  2. An implementation of the Pollard-rho or baby-step-giant-step algorithm. Both algorithms can be found in the HAC.

dl-brute .

On input a file containing decimal-formatted ( p; g; h ), prints x to standard output.

dl-efficient .

On input a file containing decimal-formatted ( p; g; h ), prints x to standard output.

(Works well for 20-40bit keys)

About


Languages

Language:Python 100.0%