摘要:
/// <summary> /// 接点读取类 /// (一个简单的读取appconfig的类) /// </summary> public static class RConfig { /// <summary> /// 读取接点到字符串 /// </summary> /// <param name="key">key</param> /// <returns></returns> public static string ReadString(string key) ...
阅读全文
posted @ 2012-03-15 10:41
守望幸福的猪
阅读(1537)
推荐(0)
编辑
摘要:
/// <summary> /// AES加密 /// </summary> /// <param name="inputdata">输入的数据</param> /// <param name="iv">向量128位</param> /// <param name="strKey">加密密钥</param> /// <returns></returns> public static byte[] AESEncrypt
阅读全文
posted @ 2012-03-15 09:29
守望幸福的猪
阅读(831)
推荐(0)
编辑
摘要:
#region DES加密解密 /// DES加密 /// <param >待加密的字符串</param> /// <param >加密密钥,要求为8位</param> /// <returns>加密成功返回加密后的字符串,失败返回源串</returns> public static byte[] EncryptDES(byte[] data, byte[] iv, string encryptKey) { try { byte[] rg...
阅读全文
posted @ 2012-03-15 09:28
守望幸福的猪
阅读(383)
推荐(0)
编辑