tik_manager4.core.cryptor
Exceptions
Custom exception for Cryptor errors. |
Classes
Encryption and decryption utility. |
Module Contents
- class Cryptor
Encryption and decryption utility.
- 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.
- 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.