Skip to content

NikolaiT/Large-Primes-for-RSA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Finding large Prime Number for RSA Key Generation

Source code for the blog post on large prime numbers for RSA

The approach in this code is to generate large primes by randomly selecting large integers and then testing them for primality with the Miller-Rabin Primality Test. Due to the prime number theorem, primes must occur with probability roughly P(n is prime) = 2/ln(n). Generated primes are used for RSA encryption/decryption as a sample application.

About

Finding large prime numbers for RSA

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages