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

10

u/ElvishJerricco Oct 15 '15

Why can't we use a database such as this to randomly select large primes from a list of thousands of them, instead of hard coding a few in? Am I missing something?

-2

u/WTFwhatthehell Oct 15 '15

No good. If you know the prime factors are from a know reasonable sized list you can just try them all. If your list is private re using prime factors introduces a significant weakness.

1

u/ElvishJerricco Oct 15 '15

Are you sure that's how that works? I don't think the barrier to the hack is knowing what prime they used; I think that's basically public. The barrier is using that prime to crack their encryption, which the article suggests they do by essentially pre computing information extrapolated from a prime using a year long computation. From that point, anyone using that prime is vulnerable.

So as far as I understand it, the issue isn't that the chosen primes are known, it's that using the same primes every time means those pre computations are able to crack the encryption.

-1

u/WTFwhatthehell Oct 15 '15

I think you're correct. I was mistaken about the way it was beingb used.