H
H
Homer_Simpson2015-10-30 14:09:22
C++ / C#
Homer_Simpson, 2015-10-30 14:09:22

C++ how to encrypt string using rsa?

I have exponent and modulus
How to encrypt a string?
If possible, then using crypto++
https://cryptopp.com/wiki/RSA_Cryptography - did not figure it out

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Martyanov, 2015-10-30
@vilgeforce

Crypted = message ^ e mod n, exponentiation and modulus operations are enough for you. Usually there is a ready-made modexp. And if Crypto++ is too tough for you, take a look at OpenSSL.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question