Jump to content


Photo

GMCrypt


  • Please log in to reply
8 replies to this topic

#1 kupiakos

kupiakos

    Ninjas beat pirates

  • New Member
  • 369 posts

Posted 12 April 2011 - 04:53 AM

So, as I am sitting checking my email, I see an email for a subscribed forum thread I created back when GMC was blue. It was my File Encryption System. I then thought, "Hey! I should remake this with my newfound C++ knowledge, but better!"

So, here it is:

GMCrypt
The Ultimate Encryption Extension

GMCrypt can encrypt/decrypt has 7 different encryption algorithms, some faster, some more secure.
One of the parameters passed it the encryption strength, from 0-6.
Encryption level 0, One-Char XOR, encrypts around 40MB per second.
Encryption level 6, however, encrypts around 20MB per second.
It's still better than my original pure-GML 429KB per second, whose algorithm is similar to Encryption Level 1 in GMCrypt.

GMCrypt can encrypt/decrypt either a file or a string.
You can have it do the file-opening and converting for you,
or a string can be passed and the encrypting is done on the string!
Note, strings are passed by reference and will therefore be directly edited. Scary, huh?

In order to use, you must provide credit of some sort in the game using it.
Also, you should send me a PM/Email so I can support your game. Help me help you help us all, right?

So, here is the link:
Download gmcrypt - gex.zip from Host-A

To help support this topic, reply with a review after download, please? ;)

Also, take a look at the sister topic for those who prefer DLLs: GMCrypt DLL

Update 4/12/2011 - Fixed DLL Memory Leak

- Κυριακος

Edited by kupiakos, 12 April 2011 - 05:58 PM.

  • 0

#2 LRG

LRG

    GMC Member

  • GMC Member
  • 687 posts

Posted 24 May 2011 - 04:50 AM

hey, could you make this compatible with GM8.1?
  • 0

#3 Ember

Ember

    I made a bubble

  • GMC Member
  • 33 posts
  • Version:GM8

Posted 24 May 2011 - 12:50 PM

Aha! I've been waiting so long for something like this!

Too bad I must wait until I get home to try it...
  • 0

#4 locohost

locohost

    GMC Member

  • GMC Member
  • 459 posts
  • Version:GM:Studio

Posted 09 June 2011 - 12:14 AM

Sounded promising but doesn't work in 8.1. "Worked" message appears positive, but there is no new encrypted file anywhere that I can find :wacko:
  • 0

#5 Memor-X

Memor-X

    GMC Member

  • New Member
  • 16 posts

Posted 09 June 2011 - 01:17 AM

is there a way to unencrypt files encrypted with GMCrypt in a php file, i want people to be able to upload scores on my game's site in their profile and the system is PHP based
  • 0

#6 jobro

jobro

    GMC Member

  • New Member
  • 1247 posts
  • Version:GM8

Posted 11 July 2011 - 05:59 PM

I had a quick test of it, and it works perfectly in 8.109.
  • 0

#7 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1417 posts
  • Version:Unknown

Posted 24 July 2011 - 10:15 PM

this was great but i spent ages!!! figuring out why a variable i encypted (a number) always decrypted to a letter ("a"
i figured out that it worked when the variable you pass to de/encrypt is a GLOBAL variable and not a temp variable declared in the script!!
  • 0

#8 kupiakos

kupiakos

    Ninjas beat pirates

  • New Member
  • 369 posts

Posted 10 September 2011 - 07:47 PM

this was great but i spent ages!!! figuring out why a variable i encypted (a number) always decrypted to a letter ("a"
i figured out that it worked when the variable you pass to de/encrypt is a GLOBAL variable and not a temp variable declared in the script!!

Did you try using a class variable (meaning a variable local to that instance?)

Edited by kupiakos, 10 September 2011 - 07:47 PM.

  • 0

#9 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1417 posts
  • Version:Unknown

Posted 14 October 2011 - 01:03 AM

please clarify this

Note, strings are passed by reference and will therefore be directly edited. Scary, huh?



ok i have a variable global.password

i call a script where the password is set to "hello";
storepass(global.password)

Script storepass()
global.tempvar=argument0;
GMCrypt_encrypt_string(global.tempvar,"tataloo", 4);
//then save the password to ini file

But the thing is i have debug running and after i call the script this is what it shows
global.tempvar=&*^%29
global.password=&*^%29

but WHY has the value of global.password been changed aswell??

I even tried creating a temporary variable (with value of global.password) and passing that in the script but it still changed the value of global.password
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users