Protect
This option requires that you have a Configuration File, if you do not have it, you can get it from the ByteHide panel.
ByteHide Shield Protect
Use the following command to get an overview of all ByteHide Shield Protect
commands:
bytehide shield protect --help
Protection with configuration file
To protect an application with specific settings, you must use the protect
command, this command will allow you to protect your application with the settings you want.
bytehide shield protect <APPLICATION PATH> <OUTPUT DIRECTORY PATH> -c <CONFIGURATION PATH>
Where:
<APPLICATION PATH>
it will be the full path of the application, i.e:c:\folder\app.exe
<OUTPUT DIRECTORY PATH>
it will be the directory where the protected application will be savedi.e:c:\folder\protected\app.exe
.-c <CONFIGURATION PATH>
it will be the full path of the Shield configuration, i.e:c:\folder\shield.config.json.
Read about the settings in: Shield Configurations.-s <SIGNING PATH>
it will be the full path of the signing certificate, i.e:c:\folder\certificate.snk
-p <SIGNING PASSWORD>
it will be the password of the signing certificate, i.e:password
An example would be:
bytehide shield protect "c:\folder\app.exe" "c:\folder\protected\app.exe" "c:\folder\shield.config.json"
An example with signing certificate would be:
bytehide shield protect "c:\folder\app.exe" "c:\folder\protected\app.exe" "c:\folder\shield.config.json" -s "c:\folder\certificate.snk" -p "password"
Protection without configuration file
If you want to protect an application without using a configuration file, you can use the --project-token
and --preset
command, this command will start an interactive flow asking you for the necessary values to protect your application.
An example would be:
bytehide shield protect "c:\folder\app.exe" "c:\folder\protected\app.exe" --project-token e34762f8-8ad6-0000-0000-000000000000 --preset "optimization"
An example with signing certificate would be:
bytehide shield protect "c:\folder\app.exe" "c:\folder\protected\app.exe" --project-token e34762f8-8ad6-0000-0000-000000000000 --preset "optimization" -s "c:\folder\certificate.snk" -p "password"
Where:
<APPLICATION PATH>
it will be the full path of the application, i.e:c:\folder\app.exe
<OUTPUT DIRECTORY PATH>
it will be the directory where the protected application will be savedi.e:c:\folder\protected\app.exe
--project-token
it will be the project token, i.e:e34762f8-8ad6-0000-0000-000000000000
--preset
it will be the preset to use, i.e:optimization
-s <SIGNING PATH>
it will be the full path of the signing certificate, i.e:c:\folder\certificate.snk
-p <SIGNING PASSWORD>
it will be the password of the signing certificate, i.e:password
You can explore further configuration options in the following section:
Shield Configuration Files
How to configure your applications
Shield Protections
How Protections Work