123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|427|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Blitz -> Help with Image encryption

Wed, 17 Mar 2010, 06:56
omadan
hello all.

I have been very busy finishing my game. it is finished and I am very pleased with the results.

However, I have a bit of a problem.

How can I encrypt my images so people cannot see the actuall .png file except just when playing the game.

I tried some lossless encrytpion which I coded myself, works, but too slow.

Any other options. Im just interested on protecting image files if that helps, not really bothered about sound

Im using Blitz Basic
Regards Joe
Fri, 19 Mar 2010, 10:46
omadan
Thanks for your reply Tiki.
.png images when used with this get sickly huge

I think ill just go ahead and program something myself, or ill post game without encrypting images.

Thanks and as always I welcome any other info/advice.

Regards -Joe


Fri, 19 Mar 2010, 10:52
LostUser
There are quite a few Blitz as "packages" programmes. I have not tried them all, but a few of them are actually very good and do not include any viewable assets.
Sat, 20 Mar 2010, 02:39
omadan
Could you at least mention one.

I googled for that and believe you me, I got blitz searches which had nothing to do with the language

Thanks again

-Joe

Sat, 20 Mar 2010, 05:51
Jayenkai
I'm sure there's something out there, but I can't find anything right now!!
Have you considered attaching an exe to do the job for you?

If you can find an old command-line dos-based freeware compressor, you can zip up all your images, get the game to run the exe to unzip them when it's loading, and delete them when it's done..
Add a password to the zip, job done..

-=-=-
''Load, Next List!''
Sun, 21 Mar 2010, 09:42
Pio
It might be enough to mess up the images' headers. Like, add some value (and wrap if the value gets over 255) to each of the first 50-100 bytes. Then, somehow, unmess when loading...
Sun, 21 Mar 2010, 09:46
Jayenkai
That's actually quite a good idea.. But you'd still have to pass the whole file through Blitz to get it to work, and I can't imagine that would be much quicker. But worth a try.

-=-=-
''Load, Next List!''
Sun, 21 Mar 2010, 11:41
JL235
Pio It might be enough to mess up the images' headers. Like, add some value (and wrap if the value gets over 255) to each of the first 50-100 bytes. Then, somehow, unmess when loading...
Security through obscurity, nothing more.