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

前端 未结 6 1977
醉酒成梦
醉酒成梦 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:28

    DES is pretty much obsolete at this point. Here is the Wikipedia. If you are changing the key a lot, it might be adequate, but if you are relying on a key for a while, AES seems like a better choice.

    Of course it is a question of how much protection you need. But AES is build right in there too.

    I have used AES for small strings, and it works nice.

    What I have read about TripleDES is that since DES is easily crackable, TripleDES is still not substantial.

提交回复
热议问题