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