The Daily Click ::. Forums ::. Klik Coding Help ::. Best way to encrypt/decrypt a file?
 

Post Reply  Post Oekaki 
 

Posted By Message

chrilley

Insane Beaver

Registered
  05/01/2002
Points
  704

Game of the Week WinnerVIP Member360 Owner
17th February, 2008 at 05:03:27 -

Heya, still doing some work on my space shoot em up, Forbidden Zone. And I just implented external loading levels, in the INI fashioned way. There's also a bunch of scripts I'd like secured. What would be the best way to encrypt/decrypt the information in the files? In terms of loading them, let's say I've got an encrypted file and if I wanna decrypt it, do I have to make a temporary file for it or can I somehow store the information inside the application?

 
Image

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
17th February, 2008 at 05:51:27 -

Go download the Blowfish extension. It's fairly easy to use.

Link: http://ext.neatwares.ath.cx/ext/Blowfish_Object

 
n/a

chrilley

Insane Beaver

Registered
  05/01/2002
Points
  704

Game of the Week WinnerVIP Member360 Owner
17th February, 2008 at 07:30:09 -

Thanks, got it to work really smooth. One thing bothers me still... I copy the base-file as a temporary file to decrypt afterwards. I let the application dispose of it at the end of the frame, but it's still accessible during runtime. And if the game were to crash for whatever reason the temporary decrypted files won't be removed. Is there a solid way to prevent someone to access the decrypted files? Or should I hide them? I know people really dislike applications creating files everywhere though.

 
Image

MBK



Registered
  07/06/2007
Points
  1578

VIP Member
25th February, 2008 at 03:56:46 -

I dunno, but ... If you just Hide them, they can be found by simply changing a few windows options.

Unless you have some un-unhideable method.

And then you are back in the same boat again.

 
Click Me! http://www.create-games.com/project.asp?view=main&id=1444

http://www.mediafire.com/download.php?aoo1dnnlq5i

Blood of the Ancient One, Seen only as Shadow, Faster than Lightning, Fierce as the Greatest Dragon, Nearly Invisible, Floating in a Dream, Entered through the Demon Door, Destroyer of Evil in a Realm with a Red Sky Scarred, Who could I be ?

chrilley

Insane Beaver

Registered
  05/01/2002
Points
  704

Game of the Week WinnerVIP Member360 Owner
25th February, 2008 at 07:54:02 -

Yeah, what I really want is an internal decrypter. Like loading it into some memory then read and change it from there.

 
Image

chipset



Registered
  01/03/2008
Points
  2
2nd March, 2008 at 14:23:03 -

You could also try out Jamie's Encryption object:
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=73776
This is the one I use, and it's pretty simple to follow.

 
n/a

Phredreeke

Don't listen to this idiot

Registered
  03/08/2002
Points
  4504

You've Been Circy'd!VIP MemberPS3 Owner
3rd March, 2008 at 04:53:13 -

Everyone knows ROT13 is the best encryption Too bad there's no ROT13 extension for MMF LIJI do you read this?

 
- Ok, you must admit that was the most creative cussing this site have ever seen -

Make some more box arts damnit!
http://create-games.com/forum_post.asp?id=285363
   

Post Reply



 



Advertisement

Worth A Click