0

To use the OTP with RSA, I implemented the one-time pad first for only one time, and then I used the RSA algorithm to encrypt the message.

For the RSA algorithm, I pick $p$ = 2143 and $q$ = 3257, values which do not share any common factors and generate a random value between 1 and $(p-1)(q-1)$. Then generate a public key and private key for RSA encryption and decryption.

My question is: Is it more secure than only using the one-time pad to encrypt the message?

Patriot
  • 3,162
  • 3
  • 20
  • 66
user45804
  • 17
  • 2

1 Answers1

2

It depends on what you would use the RSA algorithm for since a one-time pad (assuming you implement it correctly) should achieve perfect secrecy, which means its ciphertext cannot be cracked. RSA is one of the first public-key cryptosystems that can also be considered as secure when you are using large enough primes.

So to answer your question, it cannot be more secure than using OTP only since it simply provides the perfect secrecy. But OTP does have its limitations and that's why we have other encryption schemes and algorithms so that we can choose the most suitable one in different situations.

Maarten Bodewes
  • 96,351
  • 14
  • 169
  • 323
Lucas H. Xu
  • 121
  • 6