Encrypt sound effects!

Does anyone know a way I could encrypt the sound effects and music and stuff when I compress my game to make them inaccessible? Is there a different program or roundabout way to do this?

Thank you!
I use Hime's encryption. It works fine for me (so far).
Ah perfect! I'll try that. Thank you! 🙂
I use Hime's encryption. It works fine for me (so far).
Unfortunately, after I put the script in, I couldn't get teh game to compress at all. I moved the audio file into Data like it told me to, but it keeps giving me the "failed to compress game data" message.
I did the test and had no difficulty whatsoever; the only thing that was necessary was to close the editor before moving the Audio folder into the Data folder.
From what I understand, the script is not for modifying the encryptor, but rather for reading the Audio folder by changing the path to the Data folder.

After encrypting (using the "include RTP" option), which took longer and made the file quite large, it installed in seconds. I'm using a low-end computer to test it. In the project, I closed RPG Maker and moved the Audio folder again to edit and test it; everything is normal.

Personally, I think it's a bit of a waste of time to encrypt using this method, since it takes minutes to decrypt, as this method was cracked years ago. Try using a third-party tool if you prefer.
I did the test and had no difficulty whatsoever; the only thing that was necessary was to close the editor before moving the Audio folder into the Data folder.
From what I understand, the script is not for modifying the encryptor, but rather for reading the Audio folder by changing the path to the Data folder.

After encrypting (using the "include RTP" option), which took longer and made the file quite large, it installed in seconds. I'm using a low-end computer to test it. In the project, I closed RPG Maker and moved the Audio folder again to edit and test it; everything is normal.

Personally, I think it's a bit of a waste of time to encrypt using this method, since it takes minutes to decrypt, as this method was cracked years ago. Try using a third-party tool if you prefer.
Not only that but it also says
"The data is decrypted and created outside of the archive when the game wants to play an audio file.
This means that while it is possible to easily copy the file once the game starts playing it,..."

So as soon as the game uses the audio file, it will be clearly available in the game folder.
Did you notice that in your test?
From what I understand (from various other threads about this topic), the encryption scripts don't completely prevent someone who really wants that file from getting it. Personally, I want to use it because in the terms of one of the music packs I bought it stated something to the effect of "don't make it easy for the consumer to get the tracks". So I put an obstacle in their way, but can't prevent them if they're determined. To be honest, I don't expect many players to go looking in the audio directory while they're playing the game to retrieve the track. Hime's script should be deleting the temporary files when they stop playing, although as I tested it, it doesn't happen immediately in all cases.

It's good enough for my purposes, but if there is a better option, I'd love to know about it, too (like that third-party tool @Dev_With_Coffee mentioned).
(like that third-party tool)
that tool is for decrypting not encrypting
So as soon as the game uses the audio file, it will be clearly available in the game folder.
Did you notice that in your test?
It was my oversight, because I included RTP when generating the installer.
I noticed that the TMP file wasn't deleted until another song played, meaning if the next map doesn't have music, nothing happens. And there's another problem: I assume there's no way to check an event with Win32API to see if the player quit the game while the music was playing.

Hime's script should be deleting the temporary files when they stop playing, although as I tested it, it doesn't happen immediately in all cases.
I changed the order in which the file should be deleted, with a delay to ensure loading, but the file remains "open" due to the audio playback function.

In the past, people simply hid large files because the encryptor couldn't complete the process. This could be applied with Win32API when playing the music, but it wouldn't be very useful nowadays.

I'd love to know about it, too
Enigma Protector x32 and x64 tools that actually do that.
There are others, but without recent updates they generate false positives in most antivirus programs, so I don't think it's appropriate to recommend any here.

Original thread: https://forums.rpgmakerweb.com/threads/encrypt-sound-effects.183421/