摘要:
using System.Web.Script.Serialization; /// <summary> /// 序列化器 /// </summary> private static readonly JavaScriptSerializer serializer; /// <summary> // 阅读全文
摘要:
public static class SlGZip { /// <summary> /// 压缩 /// </summary> /// <param name="input">输入</param> /// <returns>结果</returns> public static string Com 阅读全文
摘要:
class DesHelper { /// <summary> /// DES加密方法 /// </summary> /// <param name="prestr">待加密的字符串</param> /// <param name="key">加密的密码(只能为8位长)</param> /// <p 阅读全文
摘要:
public class AesHelper { /// <summary> /// 生成128位的随机AES秘钥 /// </summary> public static void AutoCreateAesKey() { AesCryptoServiceProvider m_aesCryptoS 阅读全文
摘要:
/// <summary> /// MD5签名 /// </summary> /// <param name="prestr">待签名字符串</param> /// <param name="key">密钥</param> /// <param name="charset">编码</param> / 阅读全文
摘要:
public string SHA1_Hash(string str_sha1_in) { SHA1 sha1 = new SHA1CryptoServiceProvider(); byte[] bytes_sha1_in = UTF8Encoding.Default.GetBytes(str_sh 阅读全文