How to implement AES Encrypt (AesManaged Rfc2898DeriveBytes) in Windows Runtime
问题 I met a blocking issue when I tried to immigrate my project from Windows Phone Silverlight 8.1 to Windows Runtime. In Windows Runtime the AES-encrypted string is not the same as the one on Silverlight before. In Silverlight: public static string EncryptAES(string encryptString) { AesManaged aes = null; MemoryStream ms = null; CryptoStream cs = null; string encryptKey = "testtest123"; string salt = "abcabcabcd"; try { Rfc2898DeriveBytes rfc2898 = new Rfc2898DeriveBytes(encryptKey, Encoding