Esempio n. 1
0
 public static string DecryptMachineScope(string encrypted)
 {
     return(Cryptor.DecryptHelper(encrypted, Cryptor._entropy, DataProtectionScope.LocalMachine));
 }
Esempio n. 2
0
 public static string Decrypt(string encrypted, byte[] entropy)
 {
     return(Cryptor.DecryptHelper(encrypted, entropy, DataProtectionScope.CurrentUser));
 }
Esempio n. 3
0
 public static string EncryptMachineScope(string clear)
 {
     return(Cryptor.EncryptHelper(clear, Cryptor._entropy, DataProtectionScope.LocalMachine));
 }
Esempio n. 4
0
 public static string Encrypt(string clear, byte[] entropy)
 {
     return(Cryptor.EncryptHelper(clear, entropy, DataProtectionScope.CurrentUser));
 }