CriFsV2Lib icon indicating copy to clipboard operation
CriFsV2Lib copied to clipboard

Support for Sword Art Online Alicization Lyocris

Open Masquerade64 opened this issue 2 years ago • 6 comments

Good evening,

I was wondering if it would be possible to add support for the encryption used in Sword Art Online Alicization Lyocris to the GUI build for extracting files.

The first 20-32 bytes of any files packed with CRILAYLA have the bytes encrypted with the XOR key 0xFF. The rest of the data remains unecrypted.

Your tool can extract the data, but not decompress the data leading to discrepancies between the sizes of the files listed in the GUI vs the files extracted, as seen in the below screenshot.

This is an image

If you would like a file sample for this game, I can supply jpn.cpk (13,201,584 bytes) via email.

Existing tools such as YACPKTool and CriPackedFileSystem do manage to successfully decrypt and decompress the data as they rely on the cpkmaker.dll library. Yet, this library will crash when trying to extract the full data.cpk. For my project, I need the ability to extract all of the CPK archives.

Thank you for your time and I hope this support can be added, Masquerade

Masquerade64 avatar Jan 16 '23 20:01 Masquerade64