C# Class DroidExplorer.Bootstrapper.Authentication.DPAPI

Show file Open project: camalot/droidexplorer Class Usage Examples

Public Methods

Method Description
Decrypt ( byte cipherTextBytes ) : byte[]
Encrypt ( byte plainTextBytes ) : byte[]

Private Methods

Method Description
CryptProtectData ( DataBlob &pPlainText, string szDescription, DataBlob &pEntropy, IntPtr pReserved, IntPtr pPrompt, CryptProtectFlags dwFlags, DataBlob &pCipherText ) : bool
CryptUnprotectData ( DataBlob &pCipherText, string &pszDescription, DataBlob &pEntropy, IntPtr pReserved, IntPtr pPrompt, CryptProtectFlags dwFlags, DataBlob &pPlainText ) : bool

Method Details

Decrypt() public method

public Decrypt ( byte cipherTextBytes ) : byte[]
cipherTextBytes byte
return byte[]

Encrypt() public method

public Encrypt ( byte plainTextBytes ) : byte[]
plainTextBytes byte
return byte[]