xtrace_sdk.crypto.encryption.aes ================================ .. py:module:: xtrace_sdk.crypto.encryption.aes Classes ------- .. autoapisummary:: xtrace_sdk.crypto.encryption.aes.AESClient Module Contents --------------- .. py:class:: AESClient(key) This class wraps Crypto AES encryption lib. .. py:attribute:: bs :value: 16 .. py:attribute:: key :value: b'' .. py:method:: encrypt(raw) AES encrypt a plaintext in bytes :param raw: plaintext to be encrypted with self.key :type raw: bytes :return: cipher in bytes :rtype: bytes .. py:method:: decrypt(enc) AES decrypt a cipher :param enc: cipher in bytes :type enc: bytes :return: plaintext :rtype: string