Hacker News new | ask | show | jobs
by sweeneyrod 2500 days ago
Damn, looks like I should stop using 21 as my PK then.
2 comments

Not sure what algorithm you use for encryption, but 21 doesn't look like a prime. Maybe run a Miller Rabin test on it? ;)
It's the modulus of my RSA PK, so the product of two large primes rather than a prime itself. Of course, I can't say what the factors are, otherwise anyone could crack it even if they don't have a quantum computer!
Just XOR 21 times, problem solved!
Always with the same mask, to make sure it is applied well.