RSA-Cryptosystem RSA encryption and decryption implemented in Java language. This site helped me a lot: https://asecuritysite.com/encryption/random3 Example Generating 32-bit prime numbers: