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