+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Encryption – The Basics

  1. #1
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Encryption – The Basics

    Encryption – The Basics

    What is encryption?
    Short answer – Making something unreadable without first decrypting it.
    Long answer – Let’s take an example string, ‘Text’ now as it is it is perfectly readable by any program, even your naked eye, now with encrypting it I could apply an algorithm to that string and transform it to virtually anything, for example, ’1548795200 7’ yeah, of course this was just a random number, but with some algorithm you could transform that string to anything. All you need is an algorithm. Might sound simple, yeah let’s just invent a formula, well fellas, when highly sensitive data is in place, and maximal security is needed then it is not so simple. We can virtually encrypt anything, a string, a file, a telephone line, sound, movies, text, internet connection and whatever we need to secure virtually.

    When is this used?
    This is used when we need security, we need to secure our sensitive documents, our financial information etc. We don’t need to encrypt our mp3 files, I bet you would not want to encrypt and decrypt an mp3 every time you want to listen to some music on your computer.

    Why do we use it?
    Well, nowadays privacy is a very important thing that every human needs, and we all want to feel safe about our data. We all know about crackers (usually mistaken as hackers) and we don’t want our document to be spread online freely for everyone to see. So that is one of the many reasons, another one would be to secure a software, even a shareware program, so as not to crack it simply by modifying some addresses in the program, if everything is encrypted it will be harder, as before we need to decrypt that, or find a security hole in the algorithm and exploit it, but still that is harder.

    How can we do it?
    We can achieve this by applying an algorithm to the file/string, in this manner we are actually destroying the original data and storing it as encrypted and the only way to retrieve the data back is not by going into the recycle bin and restoring it lol, but generally by applying the reversal of the encryption algorithm and get our data.

    Now what’s next?
    Now I made a software, which you can download at the end of this article, which you can experiment with. It contains 3 samples of the simplest string encryption algorithms I could find. These are called:
    1. Flipper
    2. Shifter
    3. Reverser

    Now let’s start with the Flipper:
    This one is very, very, very, simple. This divides the string into pairs, for example takes this string, ‘Text Here’ and it divides it into pairs of two like this ‘Te’, ‘xt’, ‘ H’, ‘er’, ‘e’ (note that near the H there is a space, that is counted as a character. And it flips each character with the other, it takes the first character and replaces it with the second and replaces the second with the first, so it is something like that ‘eT’, ‘tx’, ‘H ‘, ‘re’, ’e’ so the result will be like this:
    ‘eTtxH ree’

    Now let’s continue with the Shifter:
    This one perhaps is not so easily detected, but still is not secure enough, this takes a string, again let’s take ‘Text Here’ and it takes the ASCII of each and every character and it makes the ASCII plus one, for example if the ASCII is 60 this one will return it as 61. Basically the next letter in the alphabet (at least in the English alphabet, but let’s not forget of characters like space and such) so that string would be something like ‘Ufyu!Ifsf’

    And last one the Reverser:
    This one is basically very simple, it just reverses the string for example ‘Text Here’ would become ‘ereH txeT’

    What’s the fun?
    You can experiment with that software I made you can even apply more than one encryption on the same string. For example you can use the Reverse, the Shifter and then Flipper, and Shifter again and Reverser and so one. In that way the only method to get your original string back would be to click the buttons again in the reverse order! Or you will never get your original string back! Yeah that’s right, so those algorithms applied several times on the same string would make it a pretty secure encryption.
    Attached Files Attached Files

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20
    Whats the difference between encoding and encrypting?

  4. #3
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    Well I am not 100% sure on this one but with 'encode' you can encode a video with a specific codec (like DivX) or transform analog signal into digital form encding can even be used in compression etc... while encrypting is more related to encrypting data.
    I think....

  5. #4
    Lop's Avatar
    Lop
    Lop is offline Speaks fluent binary
    Join Date
    May 2006
    Posts
    1,178
    Rep Power
    30
    Encoding is the process of transforming information from one format into another

    Encryption is the conversion of data into a form, called a ciphertext, that cannot be easily understood by unauthorized people

  6. #5
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    I think that I was close

  7. #6
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143
    One thing to be aware of is that all three methods described, while valid examples of encryption, are almost completely useless for protecting data by today's standards. Most of the strong versions of encryption employ algorithms developed by mathematicians to make uncovering the original message extremely difficult.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  8. #7
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101
    Yeah - As I think that I said in the article its self, these are not recommended for use where sensitive data needs to be secured. There are only the very basics!

  9. #8
    Chinmoy's Avatar
    Chinmoy is offline Programming Expert
    Join Date
    Feb 2008
    Location
    where heaven meets earth
    Posts
    410
    Rep Power
    18

    encryption

    thats good enough for starting.you can move on to higher ones like rc-64 maybe...but thats where you start.definitely.

  10. #9
    Kaabi Guest

    Re: Encryption – The Basics

    I like learning about encryption, it is pretty interesting. Use an algorithm to encrypt strings and then use a special key to decrypt it. As you said, starts off simple and gets extremely complicated as you increase security.

  11. #10
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Re: Encryption – The Basics

    I totally agree. Besides that it's a very interesting subject, and has an important role in the IT sector.

+ Reply to Thread
Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Encryption
    By Vaielab in forum PHP Development
    Replies: 5
    Last Post: 10-12-2011, 06:44 AM
  2. XoR Encryption
    By DanSpd in forum C# Programming
    Replies: 0
    Last Post: 02-13-2010, 10:29 AM
  3. Encryption
    By BlaineSch in forum ASP, ASP.NET and Coldfusion
    Replies: 5
    Last Post: 06-01-2009, 10:27 PM
  4. Encryption
    By TALucas in forum Java Tutorials
    Replies: 7
    Last Post: 04-06-2009, 04:19 AM
  5. Wi-Fi Encryption
    By TcM in forum Technology Ramble
    Replies: 6
    Last Post: 02-26-2008, 03:32 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts