Hello!
I'd like to encrypt a pack file containing the sounds of my game.
The encryption itself isn't the problem, I just opened the pack file as a normal file object, read it and encrypted it with a specific key, before I wrote the encrypted string back to a new file.
However, when I try to load the encrypted pack into the game, it doesn't work. I've already tried to load the file, read it as a string, decrypt the string and assign the decrypted string to the pack file object, I can't get that to work though.
I've also tried just loading the encrypted file into the pack file object, which obveously also didn't work, just tried it for completenes' sake.
I'd be really grateful for any ideas you can send my way.
Regards
Maximilian
P.S., other than that, the pack file object works completely without issue for me though.
Pack encryption is currently not possible at all.
You can use something like pack_set_identifier
, but not sure if it works as encryption.
Nope, it only modifies the first 8 characters of the pack data to, as the name suggests, identify if it's valid. Pack encryption is available in the SQL Lite pack, which is pretty cool but be aware that NVGT can't handle sound playing directly from a SQL Lite pack yet. This as well as general pack encryption is about to be added though, and I think you could even somehow do basic pack encryption by modifying your user.h file if building your NVGT from source etc but haven't looked into that.
Hello!
Thanks for your replies, then I'll wait for the next update.
Regards
Maximilian