/// <summary> /// 验证密码是否正确 /// </summary> /// <param name="password"></param> /// <returns></returns> public Boolean VerificationPassword(String password) { if (String.IsNullOrEmpty(Password)) { return(false); } return(Password.Equals(MD5CryptoHelper.Encrypto(password))); }
public static String CreateSignKey(String password) { return(MD5CryptoHelper.Encrypto(password)); }
/// <summary> /// 修改密码 /// </summary> /// <param name="password"></param> public void UpdatePassword(String password) { Password = MD5CryptoHelper.Encrypto(password); }