摘要: 1 public static string ImgToBase64String(string filepath) 2 { 3 try 4 { 5 Bitmap bmp = new Bitmap(fil... 阅读全文
posted @ 2015-05-22 10:24 执著者 阅读(245) 评论(0) 推荐(0) 编辑
摘要: #region ========加密======== /// /// 加密 /// /// /// public static string Encrypt(string Text) { ... 阅读全文
posted @ 2015-04-17 15:48 执著者 阅读(342) 评论(1) 推荐(0) 编辑
摘要: using System.Security.Cryptography;using System.IO; using System.Text; ///MD5加密 public string MD5Encrypt(string pToEncrypt, string sKey... 阅读全文
posted @ 2015-04-17 10:54 执著者 阅读(179) 评论(0) 推荐(0) 编辑
摘要: /// /// ///////MD5加密 /// /// /// public static string MD5(string Sourcein) { MD5CryptoServiceProvider MD5CSP = new MD5Cr... 阅读全文
posted @ 2015-04-17 10:53 执著者 阅读(93) 评论(0) 推荐(0) 编辑
摘要: /// /// ////post数据 /// /// /// /// /// public static string SendMsg(string fxPhone, string fxPassword, string toPhone, string m... 阅读全文
posted @ 2015-04-17 10:51 执著者 阅读(1242) 评论(0) 推荐(0) 编辑
摘要: /// /// 获取当前时间戳 /// /// 为真时获取10位时间戳,为假时获取13位时间戳. /// public static string getTimeStamp(bool bflag = tr... 阅读全文
posted @ 2015-04-17 10:47 执著者 阅读(492) 评论(1) 推荐(0) 编辑
摘要: 来源:http://www.chinaitpower.com/A/2005-05-13/116840.html 1.来历 MD5的全称是message-digest algorithm 5(信息-摘要算法,在90年代初由mit laboratory for computer science和r... 阅读全文
posted @ 2015-04-17 09:35 执著者 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 利用下面的方法,可直接输入数据,反回md5加密后的代码/// /// 用md5加密 /// /// 输入的数据 /// public static string MD5(string Sourcein) { MD5CryptoServiceProvider MD5CSP = new MD5C... 阅读全文
posted @ 2015-04-17 09:33 执著者 阅读(340) 评论(0) 推荐(0) 编辑