Beispiel #1
0
 protected string Enctry(string pass, string str)
 {
     if (string.IsNullOrEmpty(str))
     {
         Random random = new Random();
         str = ((char)random.Next(65, 91)).ToString() + ((char)random.Next(65, 91)).ToString(); //随机产生两个字母
     }
     return(str + WebComm.CreateMd5((str + WebComm.CreateMd5(pass))));
 }