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