SciresM / hactool

hactool is a tool to view information about, decrypt, and extract common file formats for the Nintendo Switch, especially Nintendo Content Archives.
ISC License
982 stars 151 forks source link

Returns error "Failed to match keys" and doesn't extract #118

Closed GormAuslander closed 10 months ago

GormAuslander commented 1 year ago

I have command window CD'd into the folder with the exe, along with the keys and the xci I'm trying to unpack. I run the command hactool.exe -k prod.keys totk.xci and I get a warn that prod.keys doesn't exist, along with a list of "failed to match key" errors.

Clearmist commented 1 year ago

Hello Gorm. It's not obvious in the documentation, but you need to specify the type of your input file. It looks like your file is XCI so add --intype xci to your command.