private protected override object EncryptItem(object obj) { var noteToEncrypt = (Note)obj; noteToEncrypt = (Note)noteToEncrypt.Clone(); noteToEncrypt.Notes = VaultManager.EncryptString(noteToEncrypt.Notes); return(noteToEncrypt); }
private protected override object EncryptItem(object obj) { var passwordToEncrypt = (Password)obj; passwordToEncrypt = (Password)passwordToEncrypt.Clone(); passwordToEncrypt.PasswordEncrypted = VaultManager.EncryptString(passwordToEncrypt.PasswordEncrypted); passwordToEncrypt.Url = VaultManager.EncryptString(passwordToEncrypt.Url); passwordToEncrypt.Notes = VaultManager.EncryptString(passwordToEncrypt.Notes); return(passwordToEncrypt); }
private protected override object EncryptItem(object obj) { var cardToEncrypt = (PaymentCard)obj; cardToEncrypt = (PaymentCard)cardToEncrypt.Clone(); cardToEncrypt.NameOnCard = VaultManager.EncryptString(cardToEncrypt.NameOnCard); cardToEncrypt.CardType = VaultManager.EncryptString(cardToEncrypt.CardType); cardToEncrypt.CardNumber = VaultManager.EncryptString(cardToEncrypt.CardNumber); cardToEncrypt.SecurityCode = VaultManager.EncryptString(cardToEncrypt.SecurityCode); cardToEncrypt.Notes = VaultManager.EncryptString(cardToEncrypt.Notes); return cardToEncrypt; }
private protected override object EncryptItem(object obj) { var wifiToEncrypt = (Wifi)obj; wifiToEncrypt = (Wifi)wifiToEncrypt.Clone(); wifiToEncrypt.PasswordEncrypted = VaultManager.EncryptString(wifiToEncrypt.PasswordEncrypted); wifiToEncrypt.SSID = VaultManager.EncryptString(wifiToEncrypt.SSID); wifiToEncrypt.SettingsPassword = VaultManager.EncryptString(wifiToEncrypt.SettingsPassword); wifiToEncrypt.ConnectionType = VaultManager.EncryptString(wifiToEncrypt.ConnectionType); wifiToEncrypt.Notes = VaultManager.EncryptString(wifiToEncrypt.Notes); return(wifiToEncrypt); }