Results 1 to 32 of 32

Thread: Principles and examples of "unbreakable" code.

Threaded View

  1. #1

    Thread Starter
    Frenzied Member thegreatone's Avatar
    Join Date
    Aug 2003
    Location
    Oslo, Norway. Mhz:4800 x12
    Posts
    1,333

    Principles and examples of "unbreakable" code.

    Hello everybody, today i realised that my efforts of an unbreakable code have been thought about before, and have been published before, so i decided to do some research on them.
    I found that the principles had already been published by people (someone nicknamed "oddballz194")

    Here is it is explained by him -
    Code:
    There is only one unbreakable code. It is called the One Time Pad. To use it, we need two keys. One key is the same regardless of message: You simply assign numbers to the letters. Here's one example:
    a-1 b-2 c-3 d-4 e-5 f-6 g-7 h-8 i-9 j-10 k-11 l-12
    m-13 n-14 o-15 p-16 q-17 r-18 s-19 t-20 u-21 v-22
    w-23 x-24 y-25 z-26
    Now create the pad, which is the other key. To do this, simply use a random string of digits. They are usually square, like so:
    914 894 237 414 507
    733 193 129 394 912
    903 478 284 271 327
    549 854 485 456 938
    495 638 585 203 485
    I will give an example of encoding a message, which will describe the message. For example, to encode a message "Let's go out", we do the following:
    The Letter L is 12 in our first key, so we add 12 to 914 to get 926. E is 5, so we add 5 to 894 to get 899. Continuing, we get: 
    926 899 257 433 514
    748 208 150 414
    To decode this message, we need BOTH keys. Presumably you gave the pad itself to your intended recipient already. All he has to do is take the coded message and subtract the numbers from the pad. In this case:
    926-914=12
    899-894=5
    257-237=20
    ...And so on. When finished, he gets:
    12 5 20 19 7 15 15 21 20
    Now decoding, it becomes: letsgoout
    This code is impossible to break without the pad itself. As a result, once the message is passed, you should destroy the pad used for that message. When decoding a message, the pad used to decode it should be destroyed. That way, no two messages are encoded with the same pad, and it becomes impossible to break. This code has been used, with some variations, by the intelligence services of several nations, including the USA and the USSR (back when it existed). It is mathematically impossible to break since without the pad there is no way to know which letter corresponds with a coded value.
    Have fun!
    In theory he is correct, and so, i decided to try and mimic this behaviour using Visual Basic, to my surprise it was quite easy.
    (Please ignore messy code, i'm sure people will be able to improve on it, i'm just showing you how its possible)

    I wrote the attached code earlier on today and thought you might like to see how it works.

    Note: The code is still messy in places. The distirbution of the file may make it easier to crack, so be careful.

    Enjoy.
    Attached Files Attached Files
    Last edited by thegreatone; Oct 28th, 2005 at 12:26 PM. Reason: Typo
    Zeegnahtuer?

Posting Permissions

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



Click Here to Expand Forum to Full Width