Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 03:24

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

Advertisement



[VB.NET]MySql 5 Hash Problem

Discussion on [VB.NET]MySql 5 Hash Problem within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
NastyTeaBag's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 1,481
Received Thanks: 257
[VB.NET]MySql 5 Hash Problem

Hallo Com,

Ich weiß nicht wie ich ein Passwort in MySql 5 Hashen kann.
Wozu brauche ich das: Die Metin2 Datenbank verwendet diesen Hash.

Ich habe bereits gegooglet jdeoch bin ich nur auf das gestoßen:

Code:
Dim pw As String = "test"
        Dim b_in() As Byte = System.Text.Encoding.ASCII.GetBytes(pw)
        Dim s As New System.Security.Cryptography.SHA1Managed
        Dim stage1() As Byte = s.ComputeHash(b_in, 0, b_in.Count)
        Dim stage2() As Byte = s.ComputeHash(stage1, 0, stage1.Count)
        Dim sb As New System.Text.StringBuilder
        For Each c As Byte In stage2
            sb.Append(c.ToString("X2"))
        Next
        'Debug.Print(sb.ToString)
        'MsgBox(sb.ToString)
        Dim mt2pwgen = sb.ToString
        Return mt2pwgen
Ich habe es natürlich angepasst und "test" durch das Pw ersetzt jedoch kommt wenn ich test einfüge das raus:
Code:
*BE1BDEC0AA74B4DCB079943E70528096CCA985F8
Wenn ich es aber auf der Hash Gen Seite() eintrag (was mit der Datenbank übereinstimmt) dann kommt das raus:
Code:
*94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29
Hat einer von euch eine Idee??
NastyTeaBag is offline  
Old 10/03/2012, 14:04   #2
 
NastyTeaBag's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 1,481
Received Thanks: 257
Keiner ne idee?
NastyTeaBag is offline  
Old 10/03/2012, 14:12   #3
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,810
Also mit dem Code von oben, bekomme ich 94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29 raus, genauso wie auf der Seite.
Kraizy​ is offline  
Thanks
1 User
Old 10/03/2012, 15:18   #4
 
NastyTeaBag's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 1,481
Received Thanks: 257
Troll.. Jetzt wo ichs auf meinem Desktop PC probier gehts.. Kanns sein das das an Vista liegt, weil aufm Laptop gehtz nich...

€: Funktioniert. Also von mir aus Closen.. Das Mysterium von Windows..
NastyTeaBag is offline  
Reply


Similar Threads Similar Threads
mysql hash generator
08/05/2012 - Metin2 Private Server - 4 Replies
hi ich bin auf der suche nach einem hash generator für mysql da ich keinen account in meiner db habe von dme ich das paswort (z.b 12345) könnte währe dankbar wen jemand den link hat oder mir wein paswort mach z.b 12345 ps insidepro diese seite hat keinen generator für mysql v.5 oder so
intregrate a hash Mysql 5.x generator
10/23/2009 - Metin2 PServer Guides & Strategies - 3 Replies
Hi to all, I see the web of hash generator. and have a doubt, its posible a script who entering id and pass , he can generate the hash (Mysql 5.x code) automatic and send to the db ? schematic => web to register => id pass (generate) => send to db and write on ? thanks.



All times are GMT +2. The time now is 03:24.


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.