Module win32crypt
An interface to the win32 Cryptography API
Methods
- CryptProtectData
- Encrypts data using a session key derived from current user's logon credentials
- CryptUnprotectData
- Decrypts data that was encrypted using win32crypt::CryptProtectData
- CryptEnumProviders
- Lists available cryptographic providers
- CryptEnumProviderTypes
- Lists available local cryptographic provider types
- CryptGetDefaultProvider
- Returns default provider for local machine or current user
- CryptSetProviderEx
- Sets default provider (for machine or user) for specified type
- CryptAcquireContext
- Retrieve handle to a cryptographic service provider
- CryptFindLocalizedName
- Return localized name for predefined system stores (Root, My, .Default,
.LocalMachine)
- CertEnumSystemStore
- Lists system stores
- CertEnumSystemStoreLocation
- Lists system store locations
- CertEnumPhysicalStore
- Lists physical stores on computer
- CertRegisterSystemStore
- Creates a new system certificate store
- CertUnregisterSystemStore
- Unregister specified store, optionally deleting it
- CertOpenStore
- Opens a certificate store
- CertOpenSystemStore
- Opens most commonly used Certificate Stores
- CryptFindOIDInfo
- Retreives information about an object identifier or alorithm identifier
- CertAlgIdToOID
- Converts an integer ALG_ID to it's szOID_ string representation
- CertOIDToAlgId
- Converts a string object identfier to a numeric algorith identifier
- CryptGetKeyIdentifierProperty
- Retrieves a property from a certificate by it's key indentifier
- CryptEnumKeyIdentifierProperties
- Lists private keys for user or machine
- CryptEnumOIDInfo
- Lists registered object identfiers
- CertAddSerializedElementToStore
- Creates a new Certificate, CRL, or CTL context from serialized data
- CryptQueryObject
- Determines the type of serialized or encoded data
- CryptDecodeMessage
- Decrypts an encoded message and verifies a signature
- CryptEncryptMessage
- Encrypts and encodes a message
- CryptDecryptMessage
- Decrypts an encrypted and encoded message
- CryptSignAndEncryptMessage
- Decrypts an encrypted and encoded message
- CryptVerifyMessageSignature
- Verifies a message signature
- CryptGetMessageCertificates
- Extracts certificates encoded in a message
- CryptGetMessageSignerCount
- Finds the number of signers of an encoded message
- CryptSignMessage
- Signs and encodes a message
- CryptVerifyDetachedMessageSignature
- Verifies a signature that is encoded separately from the data
- CryptDecryptAndVerifyMessageSignature
- Decrypts and decodes a signed message, and verifies its signatures
- CryptEncodeObjectEx
- Serializes and ASN encodes cryptographic structures
- CryptDecodeObjectEx
- Decodes ASN encodes data
- CertNameToStr
- Converts an encoded CERT_NAME_INFO into a formatted string
- CryptFormatObject
- Formats an encoded buffer into a readable string
- PFXImportCertStore
- Creates a certificate store from PKCS#12 data (*.PFX files)
- PFXVerifyPassword
- Checks if a PFX blob can be decrypted with given password
- PFXIsPFXBlob
- Checks if data buffer contains a PFX blob
- CryptBinaryToString
- Formats a binary buffer into the specified type of string
- CryptStringToBinary
- Converts a formatted string back into raw bytes