Class DataProtector
Inheritance
System.Object
DataProtector
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: FChoice.Common.dll
Syntax
public sealed class DataProtector
Methods
Decrypt(DataProtectionStore, Byte[])
Declaration
public static byte[] Decrypt(DataProtectionStore keyStore, byte[] cipherBytes)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
Decrypt(DataProtectionStore, Byte[], Byte[])
Declaration
public static byte[] Decrypt(DataProtectionStore keyStore, byte[] cipherBytes, byte[] entropy)
Parameters
Type |
Name |
Description |
DataProtectionStore |
keyStore |
|
System.Byte[] |
cipherBytes |
|
System.Byte[] |
entropy |
|
Returns
Type |
Description |
System.Byte[] |
|
DecryptString(DataProtectionStore, String)
Declaration
public static string DecryptString(DataProtectionStore keyStore, string encryptedText)
Parameters
Returns
Type |
Description |
System.String |
|
DecryptString(DataProtectionStore, String, String)
Declaration
public static string DecryptString(DataProtectionStore keyStore, string encryptedText, string entropy)
Parameters
Type |
Name |
Description |
DataProtectionStore |
keyStore |
|
System.String |
encryptedText |
|
System.String |
entropy |
|
Returns
Type |
Description |
System.String |
|
Encrypt(DataProtectionStore, Byte[])
Declaration
public static byte[] Encrypt(DataProtectionStore keyStore, byte[] plainBytes)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
Encrypt(DataProtectionStore, Byte[], Byte[])
Declaration
public static byte[] Encrypt(DataProtectionStore keyStore, byte[] plainBytes, byte[] entropy)
Parameters
Type |
Name |
Description |
DataProtectionStore |
keyStore |
|
System.Byte[] |
plainBytes |
|
System.Byte[] |
entropy |
|
Returns
Type |
Description |
System.Byte[] |
|
EncryptString(DataProtectionStore, String)
Declaration
public static string EncryptString(DataProtectionStore keyStore, string plainText)
Parameters
Returns
Type |
Description |
System.String |
|
EncryptString(DataProtectionStore, String, String)
Declaration
public static string EncryptString(DataProtectionStore keyStore, string plainText, string entropy)
Parameters
Type |
Name |
Description |
DataProtectionStore |
keyStore |
|
System.String |
plainText |
|
System.String |
entropy |
|
Returns
Type |
Description |
System.String |
|