What's the best way to encrypt short strings in .NET?

前端 未结 6 1984
醉酒成梦
醉酒成梦 2020-12-06 02:56

My boss wants me to encrypt some information used during data transfer. The individual strings to be encrypted are between eight and twenty characters long. A single passwor

6条回答
  •  星月不相逢
    2020-12-06 03:38

    You could just use RSA encryption, since these are short strings, which will make key exchange simpler.

    How much you can encrypt with RSA is based on the key length.

    I am a fan of the rsa library from bouncy castle.

提交回复
热议问题