public Password(string ClearPassword) { m_ClearPassword = ClearPassword; m_Salt = Encrypt.CreateRandomSalt(); m_SaltedPassword = Encrypt.ComputeSaltedHash(m_Salt, m_ClearPassword); }
public Password() { m_ClearPassword = Encrypt.CreateRandomStrongPassword(8); m_Salt = Encrypt.CreateRandomSalt(); m_SaltedPassword = Encrypt.ComputeSaltedHash(m_Salt, m_ClearPassword); }
public Password(String ClearPassword, int Salt) { m_ClearPassword = ClearPassword; m_Salt = Salt; m_SaltedPassword = Encrypt.ComputeSaltedHash(m_Salt, m_ClearPassword); }