How to use 'System.Security.Cryptography.AesManaged' to encrypt a byte[]?

前端 未结 5 1325
迷失自我
迷失自我 2020-12-10 04:02

Basically i want to use System.Security.Cryptography.AesManaged (or a better class, if you think there is one?) to take one byte array and create another encrypted byte arra

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-10 04:20

    Simple encrypting and decrypting data in C#.

    Edit: For passwords, I would recommend using BCrypt instead of doing a two-way encryption, unless you really need to recover the original password. Normally you just need the fact that someone knew the password, not the password itself.

提交回复
热议问题