MoonSec Obfuscator Macros
This documentation will show you how to use macros properly.
Encrypt a string:
If you want to encrypt a specific string, use this macro. Just add "ENCRYPT:" in a string as a prefix.
Exclude string from encryption:
If you want to encrypt all strings but a specific one, include 'NO_ENCRYPT:' in the string.
Strings smaller than 4 characters or longer than 512 characters will not be encrypted.
Get decrypted string table: GetDST(<void>)
Returns the table that stores decrypted strings. This can be used for debugging purposes or to modify a string directly from the script.
EQ Macro: __secureeq(variable1, variable2)
This macro is still under development and currently not public, but here is the usage.
This macro encrypts the if-else statement and decrypts it only if statement actually equals true, therefore stops JMP / EQ hooking based attacks to crack whitelist systems.
This macro is under development, if you use it now, it will act like a regular __eq.
You shouldn't use any "or" operator to connect multiple statements while using secureeq macro. If one side equals true, it will cause strings to stay encrypted and break your code.
You shouldn't assign or overwrite secureeq function. You can still use it as == operator but it will not have extra security if you use it outside an if-else statement. (e.g local test = __secureeq(1,2))
Last updated
Was this helpful?