Factor N = pq when p is too close to q
How to Use
- generate.rb, the script to generate such n
- fermat.rb, the tool, Usage
./fermat.rb -n N
, N is the number to be factorize - fermat_api.rb, the api, Usage p, q = FermatExp.new(n), n is the number to be factorize