public static Password CreateFromRawPassword(string rawPassword)
 {
     return(new Password(StringEncryptor.Encrypt(rawPassword)));
 }
 public Password(string password, bool isEncrypted, bool encrypt)
 {
     EncryptPassword = encrypt;
     _password       = EncryptPassword && !isEncrypted?StringEncryptor.Encrypt(password) : password;
 }