Results 1 to 4 of 4
  1. #1
    rileyjstrickland's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Florida
    Posts
    649
    Reputation
    90
    Thanks
    4,008
    My Mood
    Relaxed

    Smile Text Encrypter and Decrypter

    I was bored one day after school, so I decided to write an encrytion and decryption program. It took around 45 minutes to complete. It's pretty straight forward to use.
    The source code is posted, and the solution is attached.
    Enjoy MPGH!
    Code:
    Public Class Form1
        Dim coffset As Integer = 0
        Dim offsets As Array
        Dim intvector As Array = {1, 25, 50}
        Private Sub setintvector()
            coffset = 0
            offsets = TextBox3.Text.Split(",")
            intvector(0) = NumericUpDown3.Value
            intvector(1) = NumericUpDown2.Value
            intvector(2) = NumericUpDown1.Value
        End Sub
        Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
            setintvector()
            TextBox2.Text = String.Empty
            For Each ii As Char In TextBox1.Text
                Dim ascval As UInt64 = (Asc(ii) + intvector(1))
                intvector(1) = intvector(1) + offsets(coffset)
                coffset = coffset + 1
                If coffset >= offsets.Length - 1 Then
                    coffset = 0
                End If
                If intvector(1) > intvector(2) Then
                    intvector(1) = intvector(0)
                End If
                TextBox2.Text = TextBox2.Text & ascval.ToString("X2") & "-"
            Next
            TextBox2.Text = TextBox2.Text.Remove(TextBox2.Text.Length - 1)
        End Sub
    
        Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
            setintvector()
            TextBox1.Text = String.Empty
            Try
                Dim enctext As String = TextBox2.Text.Replace("-", String.Empty)
                Dim bytes As New ArrayList
                While enctext = "" = False
                    bytes.Add(Chr(("&H" & enctext.Substring(0, 2)) - intvector(1)))
                    enctext = enctext.Remove(0, 2)
                    intvector(1) = intvector(1) + offsets(coffset)
                    coffset = coffset + 1
                    If coffset >= offsets.Length - 1 Then
                        coffset = 0
                    End If
                    If intvector(1) > intvector(2) Then
                        intvector(1) = intvector(0)
                    End If
                End While
                For Each item In bytes
                    TextBox1.Text = TextBox1.Text & item
                Next
            Catch ex As Exception
                MsgBox(ex.Message)
            End Try
        End Sub
    End Class
    Virus Total
    Jotti

    Enjoy!

    Rep/Thank if you like this.
    <b>Downloadable Files</b> Downloadable Files
    Last edited by 'Bruno; 11-09-2012 at 02:50 AM. Reason: Fixed Virus Total.

    If You Like My Releases, Hit The Thanks button!
    Follow the rules.

    Successful Purchases: 2
    @The403
    @sundy42
    Successful Sales: 1
    @wZ. Gali
    Scammed: 1

    Favorite Quotes:
    Quote Originally Posted by Doc View Post
    Who cares about simplified mandarin. The only problem here is that Cantonese (and Hokkien) is no longer being taught, but guess what, times change. There have been thousands of languages that have been lost to the ages, you'd be pissing in the wind to try and stop that.

  2. The Following User Says Thank You to rileyjstrickland For This Useful Post:

    By_Hummet (02-04-2014)

  3. #2
    Drinking Water's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Bay Area
    Posts
    665
    Reputation
    12
    Thanks
    2,174
    My Mood
    Tired
    Im new to this decrypt ecrypt thingy. So this means i can crack .jars?

  4. #3
    'Bruno's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Portugal
    Posts
    2,883
    Reputation
    290
    Thanks
    1,036
    My Mood
    Busy
    Approved, but re-uploaded the .sln without binaries.
    Light travels faster than sound. That's why most people seem bright until you hear them speak.

  5. #4
    papadoo's Avatar
    Join Date
    Aug 2011
    Gender
    female
    Location
    California
    Posts
    28
    Reputation
    10
    Thanks
    19
    My Mood
    Stressed
    Very interesting..






    __________________

    Computer Specs
    ___________________

    CPU:
    Intel Core i7-980X Extreme Edition
    Thermaltake Water 2.0 Extreme

    RAM:
    G.Skill F3-17000CL11Q2-64GBZLD

    Motherboard:
    Intel D525MW

    Hard Drive:
    OCZ RM88

    Video Card:
    PNY VCQ6000-PB

    Sound Card:
    Creative Labs Sound Blaster X-Fi Xtreme Audio

    OS:
    Microsoft Windows 8 Professional (OEM) (64-bit)
    _______________________

Similar Threads

  1. [Release] Custom Classes: DX.h (text, boxes, circle, text highlight and more)
    By supercarz1991 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 4
    Last Post: 04-15-2012, 10:52 PM
  2. [Source Code] Simple Text Encryption
    By Defcon 1 in forum C++/C Programming
    Replies: 8
    Last Post: 11-16-2011, 04:30 PM
  3. [Help Request] Error Elite Encrypt.. and no hacks work.
    By 48Aces in forum Combat Arms Help
    Replies: 4
    Last Post: 09-08-2011, 10:23 AM
  4. [Help] Setting Text Bold And Current StyleFont
    By T0P-CENT in forum Visual Basic Programming
    Replies: 6
    Last Post: 01-14-2011, 04:43 AM
  5. [VB][Release] Text Encrypter
    By CoderNever in forum Visual Basic Programming
    Replies: 2
    Last Post: 09-27-2009, 11:03 PM