摘要: 1 /// <summary> 2 /// Rijndael算法 3 /// </summary> 4 public class RijndaelCrypto : ICrypto 5 { 6 /// <summary> 7 /// Key值 8 /// </summary> 9 private byte[] _key;10 /// <summary>11 /// IV向量12 /// </summary>13 private byt... 阅读全文
posted @ 2013-05-10 22:05 微米大大 阅读(397) 评论(0) 推荐(0) 编辑
摘要: DES,Rijndael,BouncyCastle 1 /// <summary> 2 /// 加密,解密 接口 3 /// </summary> 4 public interface ICrypto 5 { 6 /// <summary> 7 /// 加密 8 /// </summary> 9 /// <param name="bytes"></param>10 /// <returns></returns>11 byte[] Encrypt(byte[] byte... 阅读全文
posted @ 2013-05-10 22:03 微米大大 阅读(965) 评论(0) 推荐(0) 编辑