摘要:
IMVCPagesinterface IMVCPages { int GetItemsCount(); int GetPageSize(); int GetPagesCount(); /// /// 当前页面索引,用于分页... 阅读全文
摘要:
今天用System.Security.Cryptography加密。使用了AesManaged,报错:填充无效,无法移除。分析是解密失败,密文损坏,或者KEY,IV不正确。 using (AesManaged aesAlg = new AesManaged()){ aesAlg.Key = Encoding.Unicode.GetBytes("password"); aesAl... 阅读全文
摘要:
加密 static byte[] EncryptBytes_Aes(byte[] plainText, byte[] Key, byte[] IV) { // Check arguments. if (plainText == null || plainText.Length plaintext = new List(); ... 阅读全文