Skip to content

Failed to decrypt SIF2 acbs #5

@kotori2

Description

@kotori2

I was trying to decrypt SIF2 audio with this library, but the generated file is just white noice (with some rhymes?)
Here is the command I used (Tried both big and little endian):
python3 -m acb --disarm-with 0x46537c6ceb39d400 BG_0001_Home.acb
also

from acb import ACBFile, name_gen_default
import os.path


target_dir = "."
with ACBFile(open("dl/Sound/Bgm/BG_0001_Home.acb", "rb"), extern_awb=open("dl/Sound/Bgm/BG_0001_Home.awb", "rb"), hca_keys="0x46537c6ceb39d400") as acb:
    for track in acb.track_list.tracks:
        name = name_gen_default(track)

        with open(os.path.join(target_dir, name), "wb") as out_file:
            out_file.write(acb.get_track_data(track))

The following command generates the correct result with vgmstream:
.\vgmstream-cli.exe -i -o BG_0001_Home.wav .\BG_0001_Home.acb .\BG_0001_Home.awb
with key file
46 53 7C 6C EB 39 D4 00

Sample files:
vgmstream-win64.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions