
n = pq which is the modulus of both the keys.Two prime numbers are selected as p and q.The keys are generated using the following steps:. RSA involves use of public and private key for its operation. The public key is made available publicly (means to everyone) and only the person having the private key with them can decrypt the original message. RSA makes use of prime numbers (arbitrary large numbers) to function.

RSA stands for Ron Rivest, Adi Shamir and Leonard Adleman who first publicly described it in 1978. It is public key cryptography as one of the keys involved is made public. RSA algorithm is an asymmetric cryptographic algorithm as it creates 2 different keys for the purpose of encryption and decryption.

RSA Algorithm is used to encrypt and decrypt data in modern computer systems and other electronic devices. Here you will learn about RSA algorithm in C and C++.
