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