This script adds advanced protection measures such as encryption and obfuscation to a script loaded from a URL.
- Replace the
url
variable with the URL of the script you want to protect. - Replace the
secretKey
variable with your own secret key for encryption. - Run the script to generate the protected version of the script.
- The protected script will be stored in the clipboard. You can paste it into a new file or location.
- The script is loaded from the given URL using
game:HttpGet
. - The start time is recorded for performance measurement.
- The script is converted to bytecode using
string.dump
. - All characters in the bytecode are escaped using a custom
escapeString
function. - The escaped bytecode is encrypted using
syn.crypt.encrypt
and a secret key. - A random key is generated for obfuscation using a custom
generateObfuscationKey
function. - The encrypted bytecode is obfuscated using a custom
xorStrings
function and the random key. - The final script is built using
string.format
and includes code to decrypt and deobfuscate the original script. - The final script is stored in the clipboard using
setclipboard
. - The time taken to execute the script is printed.
This project is licensed under the MIT License - see the LICENSE file for details.