|
Post by therealmethuselah on Nov 20, 2005 12:13:20 GMT -5
I made a small example (since roach took down his link) using it with binary encryption/decryption. You set your own key in the cryptorInitialize(); script. Download: CryptorTutorial.zip (9KB) I encrypted a .gif file into graphic.enc using the cryptorEncryptFile(); script, then deleted the .gif so I just had the .enc file. Then I can load this encrypted graphic (which I extract to the temp_directory so it is deleted when the game is ended) into the game and display it in the middle of the screen. I suggest atleast a 12 character key. In the Creation code of room0, I have this code:
|
|
|
Post by IsmAvatar on Nov 20, 2005 14:16:11 GMT -5
For additional security, give the encrypted file an extension of a common filetype different from the original. Eg: encrypt "link.png" into "link.zip". Encrypt "myImage.bmp" into "myZip.zip" or something along those lines. Don't give away the original filetype and the fact that it's encrypted anywhere in the filename, and a cracker (one who cracks encryptions) won't have a clue - they'll just think it's a corrupted zip or something.
|
|
|
Post by therealmethuselah on Nov 20, 2005 23:54:50 GMT -5
If you check out my game 'Plains of Chaos' (look at my signature) I actually have my own file types encrypted and 7-zipped. w00t!
|
|