An open API service indexing awesome lists of open source software.

https://github.com/axix-official/unitycn-helper

A tool helps decrypt/encrypt assetbundle files for UnityCN.
https://github.com/axix-official/unitycn-helper

unity

Last synced: about 1 year ago
JSON representation

A tool helps decrypt/encrypt assetbundle files for UnityCN.

Awesome Lists containing this project

README

          

# UnityCN-Helper

[](https://api.gitsponsors.com/api/badge/link?p=kgrFzvDuyvkJEf6+zLA7aLDDcBWMpjb6y2T0cwUg3qWtChhxMrU9lzUtyeo9RVIfU4/KIFXE0+fdycrPSrqv60sLut/vi0Lk/nbN5INWYNS3DyemrDmv4liXBIUVXvOz9oY58wyiMV/awJdRZLOzJQ==)

A tool helps decrypt/encrypt assetbundle files for UnityCN.

## Command Line Arguments

- -i, --infile Required. Input file to be processed.

- -o, --outfile Required. Output processed file.

- -e, --encrypt (Default: false) Encrypt the asset file.

- -d, --decrypt (Default: false) Decrypt the asset file.

- -k, --key Required. UnityCN key for decryption.

- -f, --folder (Default: false) Operate on a folder instead of a file.

- --help Display this help screen.

- --version Display version information.

### Example

```bash
./UnityCN-Helper -i test.bundle -o test.bundle.de -k 5265736F6E616E63655265626F726E52 -d
./UnityCN-Helper -i test.bundle.de -o test.bundle -k 5265736F6E616E63655265626F726E52 -e
```

for operating on a folder:

```bash
./UnityCN-Helper -i test -o output -k 5265736F6E616E63655265626F726E52 -d -f
./UnityCN-Helper -i output -o output_en -k 5265736F6E616E63655265626F726E52 -e -f
```

## You need to know

In fact, after modifying the asset file, encrypting is not necessary.

For games I encountered, the game can load unencrypted asset files as well as encrypted asset files.

## Special Thanks

- [Perfare](https://github.com/Perfare) for creating and maintaining and every contributor of [AssetStudio](https://github.com/Perfare/AssetStudio)

- [Razmoth](https://github.com/Razmoth) for figuring out and sharing Unity CN's AssetBundle decryption ([src](https://github.com/RazTools/Studio)).