Esempio n. 1
0
 public string Decode(string value)
 {
     return(ProtectedDataAdapter.Unprotect(value, password, DataProtectionScope.LocalMachine));
 }
Esempio n. 2
0
 public string Encode(string value)
 {
     return(ProtectedDataAdapter.Protect(value, null, DataProtectionScope.CurrentUser));
 }