Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Coding program - is it good ?

  1. Jun 9, 2007 #1


    User Avatar


    i have built a coding program like 1 year ago

    and now that i kinda studied crythography in class, i was wondering what my coding system is worth (codes text)

    i wont give too much details, but my program ,

    first : replaces every character by a 7 bits (sequence of seven 0s or 1s)
    then inverts
    then codes every 4 bits with a new character

    http://thomas.lextrait.com/jpc/vbr/jpccoder.zip [Broken]

    (my name is not thomas lextrait, its one of my friends servers lol)
    Last edited by a moderator: May 2, 2017
  2. jcsd
  3. Jun 10, 2007 #2


    User Avatar
    Science Advisor

    That'll work depending on the character encoding that you're using. Unicode for example, even with UTF-8 has more characters than you can store in 7 bits, so you'd be unable to get back the original string unless you restrict its usage to ASCII.

    In any case, when you "code every 4 bits with a new character" you're just pretty much inserting 0000 every 4 bits, which is not very sophisticated, as is the inversion.

    I would rather use some existing cryptography libraries, such as .NETs System.Security.Cryptography, and use something like Rijndaels or TripleDES.
  4. Jun 10, 2007 #3


    User Avatar

    no but what i mean is that

    with my program, if you try :

    - coding "a" and store result as A
    - coding "b" and store result as B

    the result of coding "ab" will not be the same as AB

    further more if you code for example a long text, and that you take away for example a character in the middle of the coded text, the decoded text would be half wrong, and all wrong if it is in the end

    So all these aspects add to my coding program's complexity
    Last edited: Jun 10, 2007
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook