win32crypt.CryptProtectData

bytes = CryptProtectData(DataIn, DataDescr , OptionalEntropy , Reserved , PromptStruct , Flags )

Encrypts data using a session key derived from current user's logon credentials

Parameters

DataIn : bytes

Data to be encrypted.

DataDescr=None : PyUnicode

Description to add to the data

OptionalEntropy=None : bytes

Extra entropy (eg password) for encryption process, can be None

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