JWUDTool icon indicating copy to clipboard operation
JWUDTool copied to clipboard

Invalid AES key length

Open SeanValent opened this issue 4 years ago • 1 comments

I used a game key for Breath of the Wild. It was stored in a file called game.key that was 34 bytes, as it was literally just the code with no comments. No matter what, I still get an error of:

java.security.InvalidKeyException: Invalid AES key length: 34 bytes

I don't think it's possible to have a key less than this length.

Upon further inspection of the code, it looks like it's expecting a length of 16 bytes:

if (titlekey.length != 0x10) {

But I don't see how a string of 32 characters can be 16 bytes

SeanValent avatar Jan 10 '21 05:01 SeanValent

Wudump creates a valid game.key for you. https://github.com/FIX94/wudump/releases

Maschell avatar Jan 10 '21 09:01 Maschell