win32crypt.CryptAcquireContext

PyCRYPTPROV = CryptAcquireContext(Container, Provider , ProvType , Flags )

Retrieve handle to a cryptographic service provider

Parameters

Container : PyUnicode

Name of key container, can be none to use a Provider's default key container (usually username)

Provider : PyUnicode

Name of cryptographic provider. (MS_*_PROV) Use None for user's default provider.

ProvType : int

One of the PROV_* constants

Flags : int

Combination of CRYPT_VERIFYCONTEXT,CRYPT_NEWKEYSET,CRYPT_MACHINE_KEYSET,CRYPT_DELETEKEYSET,CRYPT_SILENT

Return Value

Returns None if CRYPT_DELETEKEYSET is specified, otherwise returns a handle to the provider