tik_manager4.core.cryptor ========================= .. py:module:: tik_manager4.core.cryptor Exceptions ---------- .. autoapisummary:: tik_manager4.core.cryptor.CryptorError Classes ------- .. autoapisummary:: tik_manager4.core.cryptor.Cryptor Module Contents --------------- .. py:exception:: CryptorError Bases: :py:obj:`Exception` Custom exception for Cryptor errors. .. py:class:: Cryptor Encryption and decryption utility. .. py:method:: decrypt(encrypted_text) Decrypt the given encrypted text. - Decodes the Base64-encoded string. - Applies XOR de-obfuscation with the MAC-derived key. - Validates the machine identifier. .. py:method:: encrypt(plain_text) Encrypt the given plain text. - Appends the machine identifier to the plain text. - XOR obfuscates the text with the MAC-derived key. - Encodes the result in Base64.