The Daily Click ::. Forums ::. Klik Coding Help ::. Blowfish and encryption
 

Post Reply  Post Oekaki 
 

Posted By Message

nim



Registered
  17/05/2002
Points
  7234
18th August, 2012 at 18/08/2012 00:27:51 -

Hi,

I'm using blowfish to encrypt/decrypt a data file at the start of the game, but sometimes the whole program crashes. I'm not sure of the problem but after removing the blowfish extension the game works without problems. Has anyone ever had problems with the blowfish extension or program crashing caused by encrypting files?

I wish I could give more information but I don't know why it's happening. The code tells blowfish to decrypt the file, read values (loads them into globals) then decrypt the file again, all in a short space of time. I'm wondering if sometimes the file is decrypted in time to load the values and sometimes it's not, depending on where the hd heads are.. or something? (I'm not sure why that would cause a crash, though)

Any input would be appreciated. Cheers!

 
//

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
18th August, 2012 at 18/08/2012 00:36:09 -

I've built a program that decrypts and loads then encrypts 20 or so files all in one event and it never gave me any trouble.

It might have been because I have a decent machine, but idk.

 
n/a

nim



Registered
  17/05/2002
Points
  7234
18th August, 2012 at 18/08/2012 03:05:53 -

Thanks, that's good to know. I had a problem with modfusion crashing while trying to load and play a music file in one event. Sometimes it would load in time, sometimes it wouldn't and crash out. Anything special I should know about the Blowfish extension? You just set a key and encrypt/decrypt, right?


 
//

nim



Registered
  17/05/2002
Points
  7234
18th August, 2012 at 18/08/2012 16:16:58 -

I think this might be something different after all. I'll have to look into this more. F2 restart still crashes the game ~50% of the time.

Thanks again for your help.

 
//
   

Post Reply



 



Advertisement

Worth A Click