.NET Encryption/Decryption with shared keyphrase only -


My goal is to encrypt a string that is agreed on a key-phrase and standard encryption scheme, send it to a third party And

As I have dug more in NET classes for encryption (AES that I wanted to use) it became clear that it was more complicated than I was originally though. By limited amounts I understand that it is not enough to agree on shared key phrases. Both salt and an initial vector should be similar between encryption and decryption.

Am I forgetting something? Is there a way to encrypt the desired text (using .NET) and can anyone else be able to decrypt using a shared key-phrase?

I can not even depend on the person decrypting the message. Using .NET I was looking at a standard encryption method.

For secure password-based encryption, you per message salt and initial Vector which is known for both sides.

However, this is not a problem. Salt and IV should be prepared on the randomly sending side, and the destination should be sent with ciphertext (it is fine if seen by salt and IV supervisors - unless you are randomly new for every message Are generated from the end does not compromise with the security of the system)

You have to send the ciphertext to the destination, so it only adds some extra data that should be sent.

For a standard method, you can use PBES2.

Comments