CryptoSys Home > API > Python CryptoSys API Cross Reference

Python CryptoSys API Cross Reference


A list of all the classes and functions in Python for CryptoSys API with a cross reference to the corresponding API core function in the main manual. Check the link to the API core function for more detailed information on the underlying behaviour. All methods are static methods. See also the full crsysapi Python documentation.

ClassMethodAPI FunctionDescription
Aead -- Authenticated encryption with Additional Data (AEAD) functions.
 encrypt_with_tagAEAD_EncryptWithTagEncrypt data using specified AEAD algorithm in one-off operation. The authentication tag is appended to the output.
 decrypt_with_tagAEAD_DecryptWithTagDecrypt data using specified AEAD algorithm in one-off operation. The authentication tag is expected appended to the output.
Blowfish -- Blowfish cipher algorithm (Schneier, 1993).
 encrypt_blockBLF_BytesModeEncrypt a block of data. Must be an exact multiple of 8 bytes.
 decrypt_blockBLF_BytesModeDecrypt a block of data. Must be an exact multiple of 8 bytes.
Cipher -- Generic block cipher functions.
 blockbytesn/aReturn the block size in bytes for a given cipher algorithm.
 keybytesn/aReturn the key size in bytes for a given cipher algorithm.
 encryptCIPHER_EncryptBytesEncrypt data.
 decryptCIPHER_DecryptBytesDecrypt data.
 encrypt_hexCIPHER_EncryptHexEncrypt data hex-encoded data using hex-encoded parameters.
 decrypt_hexCIPHER_DecryptHexDecrypt hex-encoded data using hex-encoded parameters.
 encrypt_blockCIPHER_EncryptBytesEncrypt a block of data. Must be an exact multiple of block length.
 decrypt_blockCIPHER_DecryptBytesDecrypt a block of data. Must be an exact multiple of block length.
 file_encryptCIPHER_FileEncryptEncrypt a file.
 file_decryptCIPHER_FileDecryptDecrypt a file.
 key_wrapCIPHER_KeyWrap Wrap (encrypt) key material with a key-encryption key.
 key_unwrapCIPHER_KeyUnwrap Unwrap (decrypt) key material with a key-encryption key.
 padPAD_BytesBlockPad byte array to correct length for ECB and CBC encryption.
 pad_hexPAD_HexBlockPad hex-encoded string to correct length for ECB and CBC encryption.
 unpadPAD_UnpadBytesRemove padding from an encryption block.
 unpad_hexPAD_UnpadHexRemove the padding from a hex-encoded encryption block.
CipherStream -- Stream cipher functions.
 bytesCIPHER_StreamBytesEncipher data in array of bytes using specified stream cipher.
 fileCIPHER_StreamFileEncipher data in a file using specified stream cipher.
Cnv -- Character conversion routines.
 tohexCNV_HexStrFromBytes Encode binary data as a hexadecimal string.
 fromhexCNV_BytesFromHexStrDecode a hexadecimal-encoded string into a byte array.
 tobase64CNV_B64StrFromBytesEncode binary data as a base64 string.
 frombase64CNV_BytesFromB64StrDecode a base64-encoded string into a byte array.
 shortpathnameCNV_ShortPathNameRetrieve the Windows short path form of the specified path.
Compr -- Compression utilities.
 compressCOMPR_CompressCompress data using compression algorithm.
 uncompressCOMPR_UncompressUncompress data using compression algorithm.
Crc -- CRC-32 computations.
 bytesCRC_BytesComputes the CRC-32 checksum of an array of bytes.
 fileCRC_FileComputes the CRC-32 checksum of a file.
Gen -- General info about the core DLL and errors returned by it.
 versionAPI_VersionReturn the release version of the core CryptoSys API DLL as an integer value.
 compile_timeAPI_CompileTimeReturn date and time the core native DLL was last compiled.
 module_nameAPI_ModuleNameReturn full path name of the current process's DLL module.
 module_infoAPI_ModuleInfoGet additional information about the core DLL module.
 core_platformAPI_PlatformReturn the platform the core DLL was compiled for ('Win32' or 'X64').
 licence_typeAPI_LicenceTypeReturn licence type: "D"=Developer "T"=Trial.
 error_lookupAPI_ErrorLookupReturn a description of an error code.
 error_codeAPI_ErrorCodeReturn the error code of the *first* error that occurred when calling the last function.
Hash -- Message digest hash functions.
 lengthHASH_LengthReturn length of message digest output in bytes.
 dataHASH_BytesCompute message digest as a byte array from bytes data.
 fileHASH_FileCompute message digest as a byte array from data in a file.
 hex_from_dataHASH_HexFromBytesCompute message digest in hexadecimal format from bytes data.
 hex_from_stringn/aCompute message digest in hexadecimal format from a string.
 hex_from_fileHASH_HexFromFileCompute message digest in hexadecimal format from data in a file.
 hex_from_hexHASH_HexFromHexCompute message digest in hexadecimal format from data in a hexadecimal-encoded string.
 hex_from_bitsHASH_HexFromBitsCompute message digest in hexadecimal format from bit-oriented data.
Mac -- Message authentication code (MAC) functions.
 dataMAC_BytesCompute a message authentication code (MAC) as a byte array from bytes data.
 hex_from_dataMAC_HexFromBytesCompute a message authentication code (MAC) in hexadecimal format from bytes data.
 hex_from_stringn/aCompute a message authentication code (MAC) in hexadecimal format from string data.
 hex_from_hexMAC_HexFromHexCompute a message authentication code (MAC) in hex format from data in hex-encoded strings.
Pbe -- Password-based encryption.
 kdf2PBE_Kdf2Derive a key of any length from a password using the PBKDF2 algorithm.
 scryptPBE_ScryptDerive a key of any length from a password using the SCRYPT algorithm from RFC7914.
Prf -- Pseudorandom function (PRF) Functions.
 bytesPRF_BytesGenerate output bytes using a pseudorandom function (PRF).
Rng -- Random Number Generator to NIST SP800-90A.
 bytestringRNG_KeyBytesGenerate an array of n random bytes.
 numberRNG_NumberGenerate a random integer in a given range.
 octetRNG_NumberGenerate a single random octet (byte).
 initializeRNG_InitializeInitialize the RNG generator using a seed file.
 initialize_exRNG_InitializeQuery and initialize the RNG generator using Intel(R) DRNG, if available.
 update_seedfileRNG_UpdateSeedFileUpdate the RNG seed file with more entropy.
 make_seedfileRNG_MakeSeedFileCreate a new seed file suitable for use with Rng.initialize().
 bytes_with_promptRNG_BytesWithPromptGenerate an array of n random bytes with a prompt for user to enter random keystrokes.
 test_drbgvsRNG_TestDRBGVSTest the random number generator for conformance to NIST SP 800-90A using the relevant test specified in the Deterministic Random Bit Generator Validation System (DRBGVS).
Wipe -- Wipe data securely.
 fileWIPE_FileSecurely wipe and delete a file.
 dataWIPE_DataZeroize data in memory.
Xof -- Extendable-output function (XOF).
 bytesXOF_BytesGenerate bytes using an extendable-output function (XOF).

Contact us

For more information or to comment on this page, please send us a message.

This page last updated 15 August 2025