Results 1 to 7 of 7
  1. #1
    Bombsaway707's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Gym
    Posts
    8,799
    Reputation
    791
    Thanks
    4,004
    My Mood
    Amused

    [Source Code] Text to binary

    Need: VB 2008

    In Your Application Make 2 Textboxes, and 2 buttons

    TUT:
    Text To Binary And Binary To Text Application. I was bored, so i made a tutorial on a converter that converts text to those 0's and 1's and convert those 0's and 1's to text, and it is not encryption software, a computer runs on 0's and 1's

    Text To Binary Or Button1:

    Dim Val As String = Nothing
    Dim Result As New System.Text.StringBuilder
    For Each Character As Byte In System.Text.ASCIIEncoding.ASCII.GetBytes (TextBox1.Text)
    Result.Append(Convert.ToString(Character , 2).PadLeft(8, "0"))
    Result.Append(" ")
    Next
    Val = Result.ToString.Substring(0, Result.ToString.Length - 1)
    TextBox2.Text = Val

    Binary To Text Or Button2:

    Dim Val As String = Nothing
    Dim Characters As String = System.Text.RegularExpressions.Regex.Rep lace(TextBox1.Text, "[^01]", "")
    Dim ByteArray((Characters.Length / 8) - 1) As Byte
    For Index As Integer = 0 To ByteArray.Length - 1
    ByteArray(Index) = Convert.ToByte(Characters.Substring(Inde x * 8, 8), 2)
    Next
    Val = System.Text.ASCIIEncoding.ASCII.GetStrin g(ByteArray)
    TextBox2.Text = Val

  2. #2
    JIGS4W's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    2,906
    Reputation
    48
    Thanks
    156
    I tested it. The code for Button 1 is OK. There are many errors in the source code for Button 2


  3. #3
    Bombsaway707's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Gym
    Posts
    8,799
    Reputation
    791
    Thanks
    4,004
    My Mood
    Amused
    Quote Originally Posted by randomhacker View Post
    I tested it. The code for Button 1 is OK. There are many errors in the source code for Button 2
    ? Pm me i can help u

  4. #4
    trevor206's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    324
    Reputation
    12
    Thanks
    107
    Quote Originally Posted by bombsaway707 View Post
    Need: VB 2008

    In Your Application Make 2 Textboxes, and 2 buttons

    TUT:
    Text To Binary And Binary To Text Application. I was bored, so i made a tutorial on a converter that converts text to those 0's and 1's and convert those 0's and 1's to text, and it is not encryption software, a computer runs on 0's and 1's

    Text To Binary Or Button1:

    Dim Val As String = Nothing
    Dim Result As New System.Text.StringBuilder
    For Each Character As Byte In System.Text.ASCIIEncoding.ASCII.GetBytes (TextBox1.Text)
    Result.Append(Convert.ToString(Character , 2).PadLeft(8, "0"))
    Result.Append(" ")
    Next
    Val = Result.ToString.Substring(0, Result.ToString.Length - 1)
    TextBox2.Text = Val

    Binary To Text Or Button2:

    Dim Val As String = Nothing
    Dim Characters As String = System.Text.RegularExpressions.Regex.Rep lace(TextBox1.Text, "[^01]", "")
    Dim ByteArray((Characters.Length / 8) - 1) As Byte
    For Index As Integer = 0 To ByteArray.Length - 1
    ByteArray(Index) = Convert.ToByte(Characters.Substring(Inde x * 8, 8), 2)
    Next
    Val = System.Text.ASCIIEncoding.ASCII.GetStrin g(ByteArray)
    TextBox2.Text = Val
    ok it works no errors but what does button 2 do if it turns the text back to normal it doesn't work for me please help.

  5. #5
    Bombsaway707's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Gym
    Posts
    8,799
    Reputation
    791
    Thanks
    4,004
    My Mood
    Amused
    Quote Originally Posted by trevor206 View Post
    ok it works no errors but what does button 2 do if it turns the text back to normal it doesn't work for me please help.
    ok so make 2 textboxes and when u get the binary numbers put those into textbox 1 and press button2 and i should translate back to normal words

  6. The Following User Says Thank You to Bombsaway707 For This Useful Post:

    trevor206 (10-06-2009)

  7. #6
    JIGS4W's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    2,906
    Reputation
    48
    Thanks
    156
    The error I got for Binary to Text or Button 2 is 'Name "Characters" is not declared'.


    EDIT: I got it working... No worries
    Last edited by JIGS4W; 10-08-2009 at 03:35 AM.


  8. #7
    LegendaryAbbo's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    5,243
    Reputation
    23
    Thanks
    546
    My Mood
    Relaxed
    use [ code] [/ code] or [ php] [ /php] it makes it easier to read

Similar Threads

  1. [Request] Source Code DLL Injector (Text) - VB 2008 Codes
    By deocute in forum Visual Basic Programming
    Replies: 1
    Last Post: 10-21-2009, 12:16 AM
  2. Stamina Hack and source code ?
    By Teh Sasuke in forum C++/C Programming
    Replies: 0
    Last Post: 12-31-2007, 05:08 PM
  3. [Release] ****** DLL Source Code
    By OneWhoSighs in forum WarRock - International Hacks
    Replies: 20
    Last Post: 10-25-2007, 07:41 AM
  4. keylogger source code
    By obsedianpk in forum WarRock - International Hacks
    Replies: 8
    Last Post: 10-24-2007, 02:31 PM
  5. HALO 2 (XBOX) Source Code
    By mirelesmichael in forum General Game Hacking
    Replies: 12
    Last Post: 09-23-2006, 04:35 AM

Tags for this Thread