This script provides very simple audio encryption. It allows you to store audio files inside the rgss3a archive.
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, you can still protect files that they have not managed to unlock during the game.
Script: download here
In the script editor, place this script below Materials and above Main
Follow these steps to encrypt your audio files. You should do this when you are ready to distribute your project.
- Move the Audio folder into the Data folder
- Compress the project and create an encrypted archive as usual
You can verify that when you extract the game, your audio files are no longer visible until you need it.
To resume working on your project, simply move the audio folder back out.
This technique is sufficiently fast for music files around 5 MB. For larger files, you may notice some delay depending on your hardware, particularly your hard-disk. Write-access is required, so you won’t be able to play it off a CD.