tik_manager4.core.cryptor

Exceptions

CryptorError

Custom exception for Cryptor errors.

Classes

Cryptor

Encryption and decryption utility.

Module Contents

exception CryptorError

Bases: Exception

Custom exception for Cryptor errors.

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.