Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Eudemons Online > EO PServer Hosting > EO PServer Guides & Releases
You last visited: Today at 17:38

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



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

Discussion on [Release] Eudemons MD5 in (C# and PHP) within the EO PServer Guides & Releases forum part of the EO PServer Hosting category.

Reply
 
Old   #1
 
sandolkakos's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 395
Received Thanks: 313
[Release] Eudemons MD5 in (C# and PHP)

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.
Attached Files
File Type: zip Fixed_Eudemons_MD5_by_MarllonBrando_EoParaiba_Since_28-April-2008.zip (10.1 KB, 86 views)
sandolkakos is offline  
Thanks
9 Users
Old 12/28/2013, 04:53   #2
 
javairc's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 559
Received Thanks: 183
Nice work
javairc is offline  
Thanks
1 User
Old 01/06/2014, 02:28   #3
 
S.Ashii's Avatar
 
elite*gold: 0
Join Date: Jan 2014
Posts: 86
Received Thanks: 32
Great work it`s helpfull ..!
S.Ashii is offline  
Thanks
1 User
Old 01/08/2014, 18:21   #4

 
magewarior2's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 1,523
Received Thanks: 767
so, this converts the MD5 back into words?
magewarior2 is offline  
Old 01/09/2014, 22:10   #5
 
sandolkakos's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 395
Received Thanks: 313
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
sandolkakos is offline  
Old 01/10/2014, 14:42   #6
 
funhacker's Avatar
 
elite*gold: 20
Join Date: Sep 2007
Posts: 1,767
Received Thanks: 1,741
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.
funhacker is offline  
Thanks
2 Users
Old 01/10/2014, 22:45   #7
 
sandolkakos's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 395
Received Thanks: 313
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
sandolkakos is offline  
Old 12/23/2014, 18:58   #8

 
PowerChaos's Avatar
 
elite*gold: 90
Join Date: Feb 2008
Posts: 1,114
Received Thanks: 640
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
PowerChaos is offline  
Thanks
1 User
Old 12/25/2014, 22:26   #9
 
sandolkakos's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 395
Received Thanks: 313
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.
sandolkakos is offline  
Thanks
1 User

Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.