public string GetPassword() { if ((this.encryptedPassword == null) || !this.encryptedPassword.Any()) { return(null); } return(CryptographyManager.Decrypt(this.encryptedPassword)); }
public void SetPassword(string password) { if (String.IsNullOrEmpty(password)) { this.encryptedPassword = null; } else { this.encryptedPassword = CryptographyManager.Encrypt(password); } }