public bool CheckPassword(string userPassword) { try { return(_password == Encrypting.GetMd5HashForString(userPassword)); } catch (Exception) { return(false); } }
public bool CheckPassword(string password) { try { string res2 = Encrypting.GetMd5HashForString(password); return(Password == res2); } catch (Exception) { return(false); } }
private void SetPassword(string password) { Password = Encrypting.GetMd5HashForString(password); }