valaphee / mcrputil

Minecraft Resource Pack Util for encrypting and decrypting resource packs.
https://valaphee.com/article/1-minecraft-resource-pack-util/
Apache License 2.0
111 stars 15 forks source link

Error when i am trying to decrypt resource pack #18

Open VinkyV opened 1 month ago

VinkyV commented 1 month ago

Key is right

thread 'main' panicked at src\main.rs:234:52: Failed to parse contents.json, the key might be wrong: Error("trailing characters", line: 1, column: 28087) stack backtrace: 0: 0x7ff7765a7bd0 - 1: 0x7ff776583a3b - 2: 0x7ff7765a9e60 - 3: 0x7ff7765aa5c6 - 4: 0x7ff7765aa099 - 5: 0x7ff7765a9fd9 - 6: 0x7ff7765a9fc6 - 7: 0x7ff7765aebe7 - 8: 0x7ff7765aefd3 - 9: 0x7ff7765431fd - 10: 0x7ff776539a96 - 11: 0x7ff77652d8a6 - 12: 0x7ff776546495 - 13: 0x7ff7765ac52c - 14: 0x7ffbb2b27374 - BaseThreadInitThunk 15: 0x7ffbb377cc91 - RtlUserThreadStart

valaphee commented 1 month ago

Hmm yea the contents.json seems to be made invalid so that it can't be parsed by mcrputil. But I'll need to reproduce it to fix.

e.g. the contents.json and the key would be enough

VinkyV commented 1 month ago

Can I pass the keys in base64 format, as string format will break them due to them being made in hex, also

I have a similar version that works

valaphee commented 1 month ago

Can I pass the keys in base64 format, as string format will break them due to them being made in hex

Sure

VinkyV commented 1 month ago

contents.json key: EwQeDxEfHxYGERADBBUAHR0WGBQTGA4OHgMTBQQDDwU=