[Release] VB.Net / C# Hex-MD5 Hash to Binary! menu

User Tag List

Results 1 to 3 of 3
  1. #1
    d3rrial's Avatar Contributor Authenticator enabled
    Reputation
    127
    Join Date
    Apr 2010
    Posts
    527
    Thanks G/R
    0/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] VB.Net / C# Hex-MD5 Hash to Binary!

    I've been looking for this code in the Interwebz a long time and didnt find anything

    So I wrote this myself:

    Code:
    static class ModuleMD5ToBinary
    {
        public static string MD5ToBinary(object Übergabewert)
        {
            long abcdefg = 0;
            string ausgabe = "";
            for (abcdefg = 0; abcdefg <= 32; abcdefg += 1) {
                if (ausgabe.Length == 128) {
                    return ausgabe;
                    break; // TODO: might not be correct. Was : Exit For
                }
                else {
                    switch (Übergabewert.Chars(abcdefg)) {
                        case "0":
                            ausgabe = ausgabe + Strings.Format("0000", "0000");
                            break;
                        case "1":
                            ausgabe = ausgabe + Strings.Format("0000", "0001");
                            break;
                        case "2":
                            ausgabe = ausgabe + Strings.Format("0000", "0010");
                            break;
                        case "3":
                            ausgabe = ausgabe + Strings.Format("0000", "0011");
                            break;
                        case "4":
                            ausgabe = ausgabe + Strings.Format("0000", "0100");
                            break;
                        case "5":
                            ausgabe = ausgabe + Strings.Format("0000", "0101");
                            break;
                        case "6":
                            ausgabe = ausgabe + Strings.Format("0000", "0110");
                            break;
                        case "7":
                            ausgabe = ausgabe + Strings.Format("0000", "0111");
                            break;
                        case "8":
                            ausgabe = ausgabe + Strings.Format("0000", "1000");
                            break;
                        case "9":
                            ausgabe = ausgabe + Strings.Format("0000", "1001");
                            break;
                        case "A":
                            ausgabe = ausgabe + Strings.Format("0000", "1010");
                            break;
                        case "B":
                            ausgabe = ausgabe + Strings.Format("0000", "1011");
                            break;
                        case "C":
                            ausgabe = ausgabe + Strings.Format("0000", "1100");
                            break;
                        case "D":
                            ausgabe = ausgabe + Strings.Format("0000", "1101");
                            break;
                        case "E":
                            ausgabe = ausgabe + Strings.Format("0000", "1110");
                            break;
                        case "F":
                            ausgabe = ausgabe + Strings.Format("0000", "1111");
                            break;
                    }
                }
            }
            return ausgabe;
        }
    }
    ^^
    C#

    Code:
    Module ModuleMD5ToBinary
        Public Function MD5ToBinary(ByVal Übergabewert As Object) As String
            Dim abcdefg As Long
            Dim ausgabe As String = ""
            For abcdefg = 0 To 32 Step 1
                If ausgabe.Length = 128 Then
                    Return ausgabe
                    Exit For
                Else
                    Select Case Übergabewert.Chars(abcdefg)
                        Case "0"
                            ausgabe = ausgabe & Format("0000", "0000")
                        Case "1"
                            ausgabe = ausgabe & Format("0000", "0001")
                        Case "2"
                            ausgabe = ausgabe & Format("0000", "0010")
                        Case "3"
                            ausgabe = ausgabe & Format("0000", "0011")
                        Case "4"
                            ausgabe = ausgabe & Format("0000", "0100")
                        Case "5"
                            ausgabe = ausgabe & Format("0000", "0101")
                        Case "6"
                            ausgabe = ausgabe & Format("0000", "0110")
                        Case "7"
                            ausgabe = ausgabe & Format("0000", "0111")
                        Case "8"
                            ausgabe = ausgabe & Format("0000", "1000")
                        Case "9"
                            ausgabe = ausgabe & Format("0000", "1001")
                        Case "A"
                            ausgabe = ausgabe & Format("0000", "1010")
                        Case "B"
                            ausgabe = ausgabe & Format("0000", "1011")
                        Case "C"
                            ausgabe = ausgabe & Format("0000", "1100")
                        Case "D"
                            ausgabe = ausgabe & Format("0000", "1101")
                        Case "E"
                            ausgabe = ausgabe & Format("0000", "1110")
                        Case "F"
                            ausgabe = ausgabe & Format("0000", "1111")
                    End Select
                End If
            Next
            Return ausgabe
        End Function
    End Module
    ^^
    VB.Net

    Have fun with it!
    Last edited by d3rrial; 04-24-2010 at 09:36 AM.

    [Release] VB.Net / C# Hex-MD5 Hash to Binary!
  2. #2
    lopiecart's Avatar Sergeant
    Reputation
    9
    Join Date
    Mar 2010
    Posts
    42
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wow more simple than i would of thought
    +rep

  3. #3
    homer91's Avatar Active Member CoreCoins Purchaser
    Reputation
    79
    Join Date
    Oct 2008
    Posts
    259
    Thanks G/R
    59/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I dont want to be rude or anything, just asking, what is this good for?

Similar Threads

  1. 4.0.x does md5 hash checks on files...
    By zamboo in forum WoW ME Questions and Requests
    Replies: 5
    Last Post: 11-22-2010, 01:21 AM
  2. Organize MD5 Hash Output
    By falconc12 in forum WoW Scams Help
    Replies: 3
    Last Post: 10-07-2008, 09:25 PM
  3. Need Help: Backup eqdkp 1.3.2 user MD5 hashes
    By humpasaur in forum WoW Scam Prevention
    Replies: 4
    Last Post: 09-11-2008, 07:55 PM
All times are GMT -5. The time now is 09:17 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search