摘要: 简单的对文本进行Md5加密小工具效果如下:App code中添加Md5Help类:public static class MD5Helper{ public static string MD5Hash(this string s)//扩展方法 { return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(s,"md5"); } private static string str; public static string MD5Str { get { return st 阅读全文
posted @ 2011-05-10 18:01 brainmao 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 如今的网站规划中算法不算多,但是想过面试这关,必须要掌握一些主流的算法,朋友上次面试就遇到了冒泡问题,在此顺带一提:冒泡排序:using System;namespace BubbleSorter { public class BubbleSorter { public void Sort(int [] list) { int i,j,temp; bool done=false; j=1; while((j<list.Length)&&(!done)) { done=true; for(i=0;i<list.Length-j;i++) { if(list[i]>list[i+1 阅读全文
posted @ 2011-05-10 09:44 brainmao 阅读(530) 评论(0) 推荐(0) 编辑