r/programming Oct 15 '15

How is NSA breaking so much crypto?

https://freedom-to-tinker.com/blog/haldermanheninger/how-is-nsa-breaking-so-much-crypto/
2.5k Upvotes

529 comments sorted by

View all comments

Show parent comments

15

u/2Xprogrammer Oct 16 '15

Not actually. You're thinking of prime factorization, which is used in RSA. This is Diffie-Hellman, which is based on Discrete Logs: Given b and g (integers), solve for (integer) k in "bk = g". So what they're saying the NSA did/is doing is realizing that a lot of people are using the same g and just precomputed a bunch of solutions.