absfuyu.tools.obfuscator module
Absfuyu: Obfuscator
Obfuscate code
Version: 5.1.0 Date updated: 10/03/2025 (dd/mm/yyyy)
- class absfuyu.tools.obfuscator.Obfuscator(code: str, *, base64_only: bool = False, split_every: int = 60, variable_length: int = 12, fake_data: bool = False)[source]
Bases:
ShowAllMethodsMixin
Obfuscate code
- Parameters:
code (str) – Code text
base64_only (bool, optional) –
True
: encode in base64 form onlyFalse
: base64, compress, rot13 (default)
split_every (int, optional) – Split the long line of code every
x
character. Minimum is1
, by default60
variable_length (int, optional) – Length of variable name (when data string split). Minimum is
7
, by default12
fake_data (bool, optional) – Generate additional meaningless data, by default
False
- LIB_BASE64_ONLY: ClassVar[list[str]] = ['base64']
- LIB_FULL: ClassVar[list[str]] = ['base64', 'codecs', 'zlib']
- SINGLE_LINE_TEMPLATE: ClassVar[Template] = <string.Template object>
- PRE_HEX_B64_TEMPLATE: ClassVar[Template] = <string.Template object>
- PRE_HEX_FULL_TEMPLATE: ClassVar[Template] = <string.Template object>
- class absfuyu.tools.obfuscator.StrShifter(str_to_shift: str, shift_by: int = 5)[source]
Bases:
BaseClass
Shift characters in a string by a specified number of positions.
- Parameters:
str_to_shift (str) – The string whose characters will be shifted.
shift_by (int, optional) – The number of positions to shift the characters, by default
5
.
Added in version 5.0.0
- shift_by