Beispiel #1
0
 /// <summary>
 /// 测试给出的密码是否正确
 /// </summary>
 /// <param name="pass">要测试的明文密码</param>
 /// <returns>如果正确,返回TRUE;否则返回FALSE</returns>
 public bool TestPassword(string pass)
 {
     byte[] encryptPass = bll.Encrypt(pass);
     for (int i = 0; i < encryptPass.Length; i++)
     {
         if (encryptPass[i] != bll._password[i])
         {
             return(false);
         }
     }
     return(true);
 }