Exemple #1
0
 public Password(string ClearPassword)
 {
     m_ClearPassword  = ClearPassword;
     m_Salt           = Encrypt.CreateRandomSalt();
     m_SaltedPassword = Encrypt.ComputeSaltedHash(m_Salt, m_ClearPassword);
 }
Exemple #2
0
 public Password()
 {
     m_ClearPassword  = Encrypt.CreateRandomStrongPassword(8);
     m_Salt           = Encrypt.CreateRandomSalt();
     m_SaltedPassword = Encrypt.ComputeSaltedHash(m_Salt, m_ClearPassword);
 }
Exemple #3
0
 public Password(String ClearPassword, int Salt)
 {
     m_ClearPassword  = ClearPassword;
     m_Salt           = Salt;
     m_SaltedPassword = Encrypt.ComputeSaltedHash(m_Salt, m_ClearPassword);
 }