win32crypt.CryptUnprotectData

(str, bytes) = CryptUnprotectData(DataIn, OptionalEntropy , Reserved , PromptStruct , Flags )

Decrypts data that was encrypted using win32crypt::CryptProtectData.

Parameters

DataIn : bytes

Data to be decrypted.

OptionalEntropy=None : bytes

Extra entropy passed to CryptProtectData

Reserved=None : None

Must be None

PromptStruct=None : PyCRYPTPROTECT_PROMPTSTRUCT

Contains options for UI display during encryption and decryption, can be None

Flags=0 : int

Combination of CRYPTPROTECT_* flags

Return Value

The result is a tuple of (description, data) where description is the description that was passed to win32crypt::CryptProtectData, and data is the unencrypted data.