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

前端 未结 5 1317
迷失自我
迷失自我 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:05

    There is a pretty nice C# implementation of symmetric key encryption at http://www.superstarcoders.com/blogs/posts/symmetric-encryption-in-c-sharp.aspx . It supports AES, Triple DES, and Rijndael. It has easy to follow functions in the form:

     string Encrypt(string plaintext, string password, string salt)
    

提交回复
热议问题