GM Database Support v3.1.1 by Alasdair Forsythe (www.gmdatabase.co.uk)

Advanced: Unsupported Scripts

Currently there is one unsupported script: encryption. This script isn't a supported part of GM Database Support, but I have included it anyway in the unlikely chance that someone might find a use for it.

This script was made for the Database File Creator so that it could encrypt/decrypt strings from different external encryption scripts. This is much slower than using a built-in encryption script.

The encryption script files used by this script must be created with the Random Encryption Script Creator.

The first argument of this encryption script is the string to encrypt, the second argument is whether to encrypt (1) or decrypt (0). So far this is the same as a normal encryption script. The difference is that the third argument is the path of the encryption script file.

When the third argument is entered the first two arguments are ignored and the script configures the game to use the external encryption script. From now on anything encrypted/decrypted will be using the external encryption script to do this (0 or nothing at all will have to be put in the third argument when it's acting like a normal encryption script).

To change the externally used encryption file just repeat the first step with the path of a new script file.

So before using the encryption functions set the external encryption script to be used like this (nothing is returned):

encryption(0,0,'script.gml')

And then the script can be used as a normal encryption script (an encrypted string is returned):

text=encryption('string',1)