Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RSA Cryptography in c#

Suppose an RSA algorithm created private key on two machines. Is there any possibility that both keys are the same?

like image 377
SunilRai86 Avatar asked Feb 27 '23 20:02

SunilRai86


2 Answers

Short answer: No. There is a theoretical possibility, but even if you create a key every second you aren't likely to get the same one twice before the sun explodes.

like image 112
averell Avatar answered Mar 12 '23 03:03

averell


Yes. Have you heard of the pigeon-hole principle?

like image 22
Matthew Flaschen Avatar answered Mar 12 '23 04:03

Matthew Flaschen