Esempio n. 1
0
        public string GetPassword()
        {
            if ((this.encryptedPassword == null) || !this.encryptedPassword.Any())
            {
                return(null);
            }

            return(CryptographyManager.Decrypt(this.encryptedPassword));
        }
Esempio n. 2
0
 public void SetPassword(string password)
 {
     if (String.IsNullOrEmpty(password))
     {
         this.encryptedPassword = null;
     }
     else
     {
         this.encryptedPassword = CryptographyManager.Encrypt(password);
     }
 }