# kgg-dec Kugou `kgg` decryption tool. ## Build Build in Windows with CMake + Visual Studio 2022 ```cmd cmake --preset vs -DCMAKE_BUILD_TYPE=Release cmake --build --preset vs-release --config Release copy /y README.MD .\\build\\vs2022\\ ``` ## Usage 1. Copy `infra.dll` from KuGou installation directory to where `kgg-dec.exe` is located. 2. Invoke exe with path to the directory containing kgg file. ```shell kgg-dec.exe . ``` ### CLI Options * `--infra-dll` (Optional): Specify the path to `infra.dll`. Defaults to `infra.dll`. * `--scan-all-file-ext` (Optional, `0` or `1`): Whether to scan all file extensions. Defaults to `0` to scan only `kgg` files. * `--db`: Specify the path to `KGMusicV3.db`, defaults to `%AppData%/Kugou8/KGMusicV3.db`. * `--suffix`: Specify the suffix of the output file, defaults to `_kgg-dec`. After specifying the parameters, you can specify any number of files or directories.