C# Class DataProtection.DataProtector

ファイルを表示 Open project: Nullstr1ng/MultiRDPClient.NET

Public Methods

Method Description
DataProtector ( Store tempStore ) : System
Decrypt ( byte cipherText, byte optionalEntropy, string DataDescription ) : byte[]
Encrypt ( byte plainText, byte optionalEntropy, string DataDescription ) : byte[]

Private Methods

Method Description
CryptProtectData ( DATA_BLOB &pDataIn, String szDataDescr, DATA_BLOB &pOptionalEntropy, IntPtr pvReserved, CRYPTPROTECT_PROMPTSTRUCT &pPromptStruct, int dwFlags, DATA_BLOB &pDataOut ) : bool
CryptUnprotectData ( DATA_BLOB &pDataIn, String szDataDescr, DATA_BLOB &pOptionalEntropy, IntPtr pvReserved, CRYPTPROTECT_PROMPTSTRUCT &pPromptStruct, int dwFlags, DATA_BLOB &pDataOut ) : bool
FormatMessage ( int dwFlags, IntPtr &lpSource, int dwMessageId, int dwLanguageId, String &lpBuffer, int nSize, IntPtr Arguments ) : int
GetErrorMessage ( int errorCode ) : String
InitPromptstruct ( CRYPTPROTECT_PROMPTSTRUCT &ps ) : void

Method Details

DataProtector() public method

public DataProtector ( Store tempStore ) : System
tempStore Store
return System

Decrypt() public method

public Decrypt ( byte cipherText, byte optionalEntropy, string DataDescription ) : byte[]
cipherText byte
optionalEntropy byte
DataDescription string
return byte[]

Encrypt() public method

public Encrypt ( byte plainText, byte optionalEntropy, string DataDescription ) : byte[]
plainText byte
optionalEntropy byte
DataDescription string
return byte[]