-3

I would like to store data, and send it by mail. What is the best way to encrypt it, and being able to decrypt it? My guess would be RSA, but is there a better way?

(Considering that the other person knows the algorithm and has the key)

2

Nope, RSA is asymmetric; you use it when you are worried that an eavesdropper might learn the key when you exchange it with the other person.

Since you are in the lucky position of having already exchanged the key, you can use a symmetric algorithm. I like AES-128 myself.

  • You still need a secure way to exchange RSA public keys. The difference is if the secure channel only needs to offer authenticity or also confidentiality. – CodesInChaos Jan 6 '14 at 11:46
  • Just my standard addon when dealing with AES: Never use the ECB mode – Samuel Jan 6 '14 at 12:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.