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

    [TUT]Basic Encrypter\Decrypter

    1. Create a new project
    2. Add 2 textboxes. Textbox1 being single lined and textbox2 being multiline
    3. Add 2 buttons. Button1 text being encrypt and button2 text being decrypt
    4. Go into the coding. Unde public class form 1 put-
    Code:
    Dim DES AsNew System.Security.Cryptography.TripleDESCryptoServiceProvider
    Dim Hash AsNew System.Security.Cryptography.MD5CryptoServiceProvider
    5. Under button1(encrypt) click put-
    Code:
    Try
    DES.Key = Hash.ComputeHash(System.Text.ASCIIEncoding.ASCII.GetBytes(TextBox1.Text))
    DES.Mode = Security.Cryptography.CipherMode.ECB
    Dim DESEncrypter As System.Security.Cryptography.ICryptoTransform = DES.CreateEncryptor
    Dim Buffer AsByte() = System.Text.ASCIIEncoding.ASCII.GetBytes(TextBox2.Text)
    TextBox2.Text = Convert.ToBase64String(DESEncrypter.TransformFinalBlock(Buffer, 0, Buffer.Length))
    Catch ex As Exception
    MessageBox.Show("The following error(s) have occurred: " & ex.Message, Me.Text, MessageBoxButtons.OK, MessageBoxIcon.Error)
    EndTry
    
    6. Under Button 2(decrypt) put-
    Code:
    Try
    DES.Key = Hash.ComputeHash(System.Text.ASCIIEncoding.ASCII.GetBytes(TextBox1.Text))
    DES.Mode = Security.Cryptography.CipherMode.ECB
    Dim DESDecrypter As System.Security.Cryptography.ICryptoTransform = DES.CreateDecryptor
    Dim Buffer AsByte() = Convert.FromBase64String(TextBox2.Text)
    TextBox2.Text = System.Text.ASCIIEncoding.ASCII.GetString(DESDecrypter.TransformFinalBlock(Buffer, 0, Buffer.Length))
    Catch ex As Exception
    MessageBox.Show("The following error(s) have occurred: " & ex.Message, Me.Text, MessageBoxButtons.OK, MessageBoxIcon.Error)
    EndTry
    
    Now how to use this. Textbox1 is like an encryption key. To decrypt a message it must be the same key as used originally Ex:
    If you put 1337 in textbox 1 and put Hai! in textbox2 if you put 1336 in textbox1 and try to decrypt textbox2 it will give you an error.
    So Textbox1 is the encryption key, and textbox2 is the message to encrypt/encrypted message

    For you lazy people heres da full code:
    Code:
    PublicClass Form1
    Dim DES AsNew System.Security.Cryptography.TripleDESCryptoServiceProvider
    Dim Hash AsNew System.Security.Cryptography.MD5CryptoServiceProvider
    PrivateSub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load
     
    EndSub
    PrivateSub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Try
    DES.Key = Hash.ComputeHash(System.Text.ASCIIEncoding.ASCII.GetBytes(TextBox1.Text))
    DES.Mode = Security.Cryptography.CipherMode.ECB
    Dim DESDecrypter As System.Security.Cryptography.ICryptoTransform = DES.CreateDecryptor
    Dim Buffer AsByte() = Convert.FromBase64String(TextBox2.Text)
    TextBox2.Text = System.Text.ASCIIEncoding.ASCII.GetString(DESDecrypter.TransformFinalBlock(Buffer, 0, Buffer.Length))
    Catch ex As Exception
    MessageBox.Show("The following error(s) have occurred: " & ex.Message, Me.Text, MessageBoxButtons.OK, MessageBoxIcon.Error)
    EndTry
    EndSub
    PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Try
    DES.Key = Hash.ComputeHash(System.Text.ASCIIEncoding.ASCII.GetBytes(TextBox1.Text))
    DES.Mode = Security.Cryptography.CipherMode.ECB
    Dim DESEncrypter As System.Security.Cryptography.ICryptoTransform = DES.CreateEncryptor
    Dim Buffer AsByte() = System.Text.ASCIIEncoding.ASCII.GetBytes(TextBox2.Text)
    TextBox2.Text = Convert.ToBase64String(DESEncrypter.TransformFinalBlock(Buffer, 0, Buffer.Length))
    Catch ex As Exception
    MessageBox.Show("The following error(s) have occurred: " & ex.Message, Me.Text, MessageBoxButtons.OK, MessageBoxIcon.Error)
    EndTry
    EndSub
    EndClass
    
    I attached my version of it. Here is the virus scans --> VirusTotal, VirScan
    For those of you who think i C&P *cough*hesjan*cough* i dindt look at the attachment its my original encryptor/decryptor made in january of '09. Plus the british kid sounds like hes 11
    Last edited by Bombsaway707; 11-30-2009 at 12:07 PM.

  2. The Following 6 Users Say Thank You to Bombsaway707 For This Useful Post:

    -MAJ (02-23-2013),Katy (07-27-2012),Lolland (11-29-2009),mnpeep (11-30-2009),RawVb (12-01-2009),XGelite (11-30-2009)

  3. #2
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    That is actually really awesome, did you write that yourself?

    If so, bravo.


    ^That's for you^

  4. #3
    Pixie's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pixie wird wieder steigen.
    Posts
    1,884
    Reputation
    22
    Thanks
    229
    My Mood
    Fine
    Seems good, I will try this when I wake up

  5. #4
    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 lolland View Post
    That is actually really awesome, did you write that yourself?

    If so, bravo.


    ^That's for you^
    Thanks bro haha and yes i wrote it myself

  6. #5
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    You are the best VB coder I've ever seen. You deserve a whole lot more cookies than I gave you

  7. #6
    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 lolland View Post
    You are the best VB coder I've ever seen. You deserve a whole lot more cookies than I gave you
    Haha thanks But dont doubt yourself, your a pretty good coder to

  8. #7
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Not as godly as you

  9. #8
    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 lolland View Post
    Not as godly as you
    haha thanks man btw Did you get it to work?

  10. #9
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    wow A+ job man.

  11. #10
    Bombsaway707's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Gym
    Posts
    8,799
    Reputation
    791
    Thanks
    4,004
    My Mood
    Amused
    Thanks Bro

  12. #11
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by bombsaway707 View Post
    Thanks bro haha and yes i wrote it myself
    I hate when people say they made it when they just copy past and take credits!

    -Rest in peace leechers-

    Your PM box is 100% full.

  13. #12
    XGelite's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Enter text here
    Posts
    1,344
    Reputation
    12
    Thanks
    276
    Quote Originally Posted by hejsan1 View Post
    I hate when people say they made it when they just copy past and take credits!

    YouTube - How To Make A Basic Encrypter In Visual Basic 2008
    .............................
    u sure he C&P?
    Last edited by XGelite; 11-30-2009 at 10:41 AM.

  14. #13
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Quote Originally Posted by XGelite View Post
    .............................
    u sure he C&P?
    Yeah almost
    -Rest in peace leechers-

    Your PM box is 100% full.

  15. #14
    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 hejsan1 View Post
    Yeah almost
    I didnt copy and paste. This is my code i posted it on a VB.net site in january of 2009. this guy mustv'e taken my code and made a video on it. I have had the code on my PC and never thought to release on MPGH. If you dont believe me look at the attachement to my thread. It is the original encryptor/decryptor. It is much more advanced then the one in the video and the one i posted for you guys to make. Also listen to the kid, hes probably 12 years old do u think he could come up with this advanced of code?
    Last edited by Bombsaway707; 11-30-2009 at 12:11 PM.

  16. #15
    Lukas59's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    Linz
    Posts
    2,197
    Reputation
    14
    Thanks
    306
    My Mood
    Amazed
    yeahh.. looks great

Page 1 of 3 123 LastLast

Similar Threads

  1. [TUT] Basic Skining with photoshop
    By No5cope in forum Combat Arms Mod Tutorials
    Replies: 36
    Last Post: 07-11-2010, 06:13 PM
  2. [TUT] Basic HTML
    By alexrules057 in forum Web Languages
    Replies: 21
    Last Post: 01-31-2010, 01:03 AM
  3. [Vid tut] Basic Game Hacking
    By Matrix_NEO006 in forum Programming Tutorials
    Replies: 5
    Last Post: 01-02-2010, 10:43 AM
  4. [TUT] Basic Cheat Engine tutorial for begginers
    By rawr161 in forum Programming Tutorials
    Replies: 2
    Last Post: 08-14-2009, 06:41 AM
  5. Basic Encryption
    By Calard in forum General Game Hacking
    Replies: 0
    Last Post: 02-23-2007, 06:32 AM

Tags for this Thread