Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 11:18

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

 

Looking for help with hashing (C#)

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2013
Posts: 2
Received Thanks: 1
Question Looking for help with hashing (C#)

Hello, everyone. I've been following this forum for some time. I never post because I can generally find what I'm looking for by searching the forum or by otherwise using web resources. I am however at a loss and thought I'd try my luck here on Epvp.

I'm writing a few tools in C# and I need a function to hash the names of rdb files. Since I have no clue where to start Thought I'd ask around.

I was using a tool that was given to me up until now but, as an example; When I try to hash db_string(ascii).rdb I get !PWS)3rDAd3O'`dU}deN instead of !PWS)3rDAd3O'`dU+O}deN

I would like to understand how this all works and be able to make edits in the future, not to mention the ability to use it in my own tools. Any help is much appreciated. Thanks in advanced.



Blue Ballz is offline  
Thanks
1 User
Old   #2
 
elite*gold: 0
Join Date: Aug 2011
Posts: 535
Received Thanks: 231
Quote:
Originally Posted by Blue Ballz View Post
Hello, everyone. I've been following this forum for some time. I never post because I can generally find what I'm looking for by searching the forum or by otherwise using web resources. I am however at a loss and thought I'd try my luck here on Epvp.
You must register and activate your account in order to view images.

Has it anything to do with HashAlgorithm.ComputeHash method? I've really never looked into the method Rappelz uses. I can help you out if you help me out. (or just wait for someone smarter to answer you)


marekrndr is offline  
Old   #3
 
elite*gold: 0
Join Date: Aug 2012
Posts: 312
Received Thanks: 252
Maybe ?
gr4ph0s is offline  
Old   #4
 
elite*gold: 0
Join Date: Jul 2012
Posts: 147
Received Thanks: 196
Lol, wrong thread...


Nulled


TheChinStrap is offline  
Old   #5
 
elite*gold: 0
Join Date: Jan 2013
Posts: 2
Received Thanks: 1
Quote:
Originally Posted by gr4ph0s View Post
Maybe ?
Yes, I did see that but I must admit I am completely out of my depth. I haven't the foggiest how to read C. I know C# and I won't claim to be an expert even in that. I suppose I'll have to read some tutorials on C and get to work.

Quote:
Originally Posted by marekrndr View Post
I can help you out if you help me out.
What exactly did you have in mind?
Blue Ballz is offline  
Old   #6
 
elite*gold: 0
Join Date: Aug 2012
Posts: 312
Received Thanks: 252
Quote:
Originally Posted by Blue Ballz View Post
Yes, I did see that but I must admit I am completely out of my depth. I haven't the foggiest how to read C. I know C# and I won't claim to be an expert even in that. I suppose I'll have to read some tutorials on C and get to work.

You just have to look into HashToName.c/h and NameToHash.c/h
gr4ph0s is offline  
Thanks
2 Users
Old   #7
 
elite*gold: 0
Join Date: Apr 2012
Posts: 448
Received Thanks: 766
Gr4ph0s mentionned the files you have to look at, hash conversion in C should not afraid someone that knows C# as the syntax is nearly the same.
There are just some loops, functions calls and arrays. Hashing is not a simple conversion to make reverse engineering more difficult to do, as data related to data.00x are mostly encrypted.
I use LEGACY_SEED as before doing the name->hash conversion, i did the algorithm using the reverse version of the hash->name one. But it leads to severals possibility and the correct one is returned when using LEGACY_SEED

Note that for the posted version, arrays name are not good names HashToName should have decryptTable* arrays instead of encryptTable* and the code is not optimized

char type is used as the byte type in C#, that is a one byte variable

For function like strcpy, strlen, floor, tolower, ... use or type them directly in google, you should get a link to that site explaining the behavior of these functions
glandu2 is offline  
Old   #8
 
elite*gold: 0
Join Date: Aug 2011
Posts: 535
Received Thanks: 231
Quote:
Originally Posted by Blue Ballz View Post
What exactly did you have in mind?

Quote:
Originally Posted by Blue Ballz View Post
I was using a tool that was given to me up until now but, as an example; When I try to hash db_string(ascii).rdb I get !PWS)3rDAd3O'`dU}deN instead of !PWS)3rDAd3O'`dU+O}deN
Show me what you got and I'll fix it for you. Also I read the link that was posted above and I hassled it working.


marekrndr is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
PW encryption / hashing
Is anyone here working on password encryption for the users_master table? I just want to make sure I'm not duplicating effort. I seem to only able...
4 Replies - Shaiya Private Server
[How To] Password Hashing
I wrote this during breakfast on my way to work so there isn't a ton of documentation along with it. A quick answer to why storing passwords (in...
13 Replies - Shaiya PServer Development



All times are GMT +2. The time now is 11:18.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2017 elitepvpers All Rights Reserved.