Closed kroast2432423 closed 7 months ago
Heya, what's the content of your key file?
The error you posted, means that your key file was empty (length=0)
The file should only contain 32 characters (a-Z,0.9) - no newline or anything else
Got same error:
thread 'main' panicked at 'range end index 16 out of range for slice of length 0', src\main.rs:206:68
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
mcrputil.exe decrypt -k BpLnfgDsc2WD8F2qNfHK5a84jjJkwzDk C:\Users\kfeig\Documents\Development\xxAROX\packs\127.0.0.1\encrypted_example\ C:\Users\kfeig\Documents\Development\xxAROX\packs\127.0.0.1\ExamplePack\
encrypted files in this pack:
NOTE:
glyph_E1.png
was successfully decryptedAh I looked at wrong revision,
I'll add a skip for files which are not decryptable / have an invalid length key. But might also be worth checking out what the default behavior is when a key is not complete, might either be using the previous key, be zero-padded or random.
For some reason, this error does not occur on all packs.
Full error:
Key and source pack are in the same directory and everything is fine with them![Screenshot_145](https://github.com/valaphee/mcrputil/assets/134645954/5006f588-dc90-40de-9f5e-1406b1880a61)