:py:mod:`expliot.core.vendors.tplink.crypto` ============================================ .. py:module:: expliot.core.vendors.tplink.crypto .. autoapi-nested-parse:: Encrypt & Decrypt module for the TP-Link smart device plugins Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: expliot.core.vendors.tplink.crypto.encrypt expliot.core.vendors.tplink.crypto.decrypt .. py:function:: encrypt(string) Encryption of input string which is in JSON format. Uses XOR cypher to encrypt. Args: string(str): The JSON string to encrypt. Returns(bytes): Data to be sent to the TP-Link smart devices. .. py:function:: decrypt(string) Decryption of the hex string which was encrypted using XOR cypher. Args: string(str): Hex string to be decrypted, without the 0x prefix. Ex. 2a3b4cddeeff11. Returns(str): Decrypted string which is in JSON format.