[Release] Eudemons MD5 in (C# and PHP)

12/28/2013 04:16 sandolkakos#1
Hello guys,

Today I have converted the Custom MD5 used by Eudemons Online from the original Javascript to C# and PHP.

And I would like to share this work with you guys that need to Encrypt your Password using C# or PHP.

I am attaching a ZIP file that contains 3 files:

eudemons_md5.js (Original Javascript Script)
eudemons_md5.php (PHP Script)
EudemonsMD5.cs (C# Script)

To use it, you just need to call the Function/Method:
EncryptPassword("password_string");
And it will return the Encrypted Password.

I hope you guys like my contribution.


@Edit (2014/12/25):
There was an error on PHP script. The generated password was different between 32/64 bits servers. So I created a function to force the values stays inner 32 bits and now it is working. The Attached File already has the correction.

Merry Christmas.
12/28/2013 04:53 javairc#2
Nice work [Only registered and activated users can see links. Click Here To Register...] :)
01/06/2014 02:28 S.Ashii#3
Great work it`s helpfull :) ..!
01/08/2014 18:21 magewarior2#4
so, this converts the MD5 back into words?
01/09/2014 22:10 sandolkakos#5
Quote:
Originally Posted by magewarior2 View Post
so, this converts the MD5 back into words?
No, it doesn't revert the MD5.

It will work exactly like "md5.js" used in the Account Register.
Now, I am using the MD5 in PHP and C#, because I am working in a Facebook APP that will manage the EoParaibaWORLD account, characters, Pets and so on.

So, to the App be able to Compare if the User Login Password is correct, my App is using the MD5 in C# to Compare it :)
01/10/2014 14:42 funhacker#6
Quote:
Originally Posted by sandolkakos View Post
No, it doesn't revert the MD5.

It will work exactly like "md5.js" used in the Account Register.
Now, I am using the MD5 in PHP and C#, because I am working in a Facebook APP that will manage the EoParaibaWORLD account, characters, Pets and so on.

So, to the App be able to Compare if the User Login Password is correct, my App is using the MD5 in C# to Compare it :)
For future reference, majority of App development is extremely easy to reverse and peek into. With current version of EO that isn't an issue, however if the day comes that people use their own sources here I'd use a more secure way than hardcoding the seed and hash methods into a mobile application.
01/10/2014 22:45 sandolkakos#7
Quote:
Originally Posted by funhacker View Post
For future reference, majority of App development is extremely easy to reverse and peek into. With current version of EO that isn't an issue, however if the day comes that people use their own sources here I'd use a more secure way than hardcoding the seed and hash methods into a mobile application.
Thanks for comment, @funhacker.
I don't know if I understood what you meant to say.

I just have converted the original md5.js, by changing the sintaxes to the new Languages :)

I am using it in this way:
In App, the User realizes Login, then the C# will encrypt the password to MD5. Now, the App will send this MD5 to a PHP (on server) that will get the Password of Database and compare if Client MD5 is matching with Database MD5.

I think that way is as secure as Eo Client. And I think Eo Client does exactly these steps :)
12/23/2014 18:58 PowerChaos#8
kinda old topic

but this is kinda fun if i just use it out of the box ( the php version )

Warning: strlen() expects parameter 1 to be string, array given in *** on line 133

changed it to count and it started to generate the password

here is the output
PHP Code:
  ["username"]=>
  
string(4"test"
  
["passwort"]=>
  
string(32"faf827ef8e31729e984f7f47cf27f786" 
this is the output i need
PHP Code:
   ["username"]=>
  
string(4"test"
  
["passwort"]=>
  
string(32"53b6320eb06e2c62888a6d1739cd24bd" 
so it are totaly 2 differend passwords
do you got a solution for that ?
Greets From PowerChaos
12/25/2014 22:26 sandolkakos#9
Hi PowerChaos,

There was an error on PHP script. The generated password was different between 32/64 bits servers. So I created a function to force the values stays inner 32 bits and now it is working. The Attached File already has the correction.

Merry Christmas.