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