至高吴上(Alfa.wu)

一个人,一生,能坚持做好一件事情是多么的牛XX啊!!!

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年2月14日

摘要: 摘自: http://www.2cto.com/kf/201204/127372.htmlusing System;using System.Text; namespace Common{/// /// 实现Base64加密解密/// public sealed class Base64{/// /// Base64加密/// /// 加密采用的编码方式/// 待加密的明文/// public static string EncodeBase64(Encoding encode, string source){byte[] bytes = encode.GetBytes(source);try 阅读全文
posted @ 2014-02-14 11:18 Alfa 阅读(22880) 评论(1) 推荐(0) 编辑

摘要: public string md5(string str, int code) { if (code == 16) //16位MD5加密(取32位加密的9~25字符) { return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str, "MD5").ToLower().Substring(8, 16); } if (code == 32) //32位加密 { retu... 阅读全文
posted @ 2014-02-14 11:14 Alfa 阅读(254) 评论(0) 推荐(0) 编辑

摘要: 摘自: http://geekswithblogs.net/rakker/archive/2006/04/21/76044.aspxHttp Post in C#Searched out on the internet and didn't really find anything that was horribly succinct, so I wrote this class for fun. I had help from http://www.codeproject.com/cs/webservices/translation.asp. I hope you enjoy! He 阅读全文
posted @ 2014-02-14 11:04 Alfa 阅读(7120) 评论(0) 推荐(0) 编辑