https://github.com/simdsoft/hellocrypto
https://github.com/simdsoft/hellocrypto
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/simdsoft/hellocrypto
- Owner: simdsoft
- Created: 2022-01-23T04:29:41.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-10T02:54:30.000Z (over 3 years ago)
- Last Synced: 2025-04-09T14:09:14.333Z (10 months ago)
- Language: Lua
- Size: 1.85 MB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Folder description
- assets-dev: The plain resources for dev, debugging
- assets: The encrypted resources for online or publish
## Build and run
- Clone [axmol](https://github.com/axmolengine/axmol)(another cocos2d-x fork) and run setup.py in root of engine
- Use cmake to build
```bat
REM Ensure visual studio 2019 or 2022 installed
cmake -B build_x86 -A Win32 -DBUILD_EXTENSION_FAIRYGUI=OFF -DBUILD_EXTENSION_GUI=OFF
cmake --build build_x86 --target HelloLua
```
- Open build_x86/HelloLua.sln, and press F5 to run, by default the vs debugging working directory is the encrypted folder `assets`,
everything should be fine if the decrypt work well.
## Use a new key & ivec to encrypt resources
- Method A:
- Delete file encrypt-cfg.xml and run do-encrypt.bat
- Method B:
- run command: "%XS_INSTDIR%\x-studio" -c -enc -cfg=.\encrypt-cfg.xml -nk -i=.\assets-dev -o=.\assets
- After reencrypt with new key, you needs change it at AppDelegate.cpp
## For more usage of x-studio encrypt system, run follow command:
"%XS_INSTDIR%\x-studio" -c --help