.. _f-encryption: module ``filehelper.encryption`` ================================ .. inheritance-diagram:: pyquickhelper.filehelper.encryption Short summary +++++++++++++ module ``pyquickhelper.filehelper.encryption`` Encryption functionalities. Inspired from `AES encryption of files in Python with PyCrypto `_ :githublink:`%|py|8` Classes +++++++ +--------------------------------------------------------------------------------+---------------------------------------------+ | class | truncated documentation | +================================================================================+=============================================+ | :class:`EncryptionError ` | raised if an issue happen during encryption | +--------------------------------------------------------------------------------+---------------------------------------------+ Functions +++++++++ +-------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +=====================================================================================+====================================================================================================================================+ | :func:`close_input_output ` | Takes the output of :func:`open_input_output` and closes streams and return expected values. | +-------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :func:`decrypt_stream ` | Decrypts a file using AES (CBC mode) with the given key. The function relies on module :epkg:`pycrypto`, :epkg:`cryptography`, ... | +-------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :func:`encrypt_stream ` | Encrypts a file using AES (CBC mode) with the given key. The function relies on module :epkg:`pycrypto`, :epkg:`cryptography`, ... | +-------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :func:`get_encryptor ` | Returns an encryptor with method encrypt and decrypt. | +-------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ | :func:`open_input_output ` | Converts *filename* and *out_filename* as streams. | +-------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: pyquickhelper.filehelper.encryption :members: :special-members: __init__ :show-inheritance: