+ Reply to Thread
Results 1 to 2 of 2

Thread: [Python] Encryption Program - PyCrypt

  1. #1
    Newbie ShadenSmith will become famous soon enough ShadenSmith's Avatar
    Join Date
    May 2009
    Location
    Kentucky - USA
    Age
    18
    Posts
    19

    [Python] Encryption Program - PyCrypt

    PyCrypt is something I threw together in my first attempt at learning some basic cryptography. It's a command line application that is bundled with a password generator I also wrote. All details and usage instructions are in the readme file, I strong suggest you check those out for a more detailed description.

    Here is an explanation of the encryption algorithm, taken from the readme file:

    A list containing all printable characters, including numbers, punctuation, and whitespace is generated, called alphabet. For each character in the supplied plain text (or encrypted text, the program does not discriminate between the two) and the corresponding character in the supplied key, the indices of the characters' locations in the alphabet list are added. This sum (or difference, in the case of decryption) is then used to further indice the alphabet list and add the corresponding character to an ouput string. Newline characters are considered in this algorithm.

    Spam
    + eggs
    --------

    68 41 26 50 = 'FqO}


    Note that the } is generated from the newline character.


    Python's string.printable is used to generate the list of printable characters.
    The strength of this encryption relies entirely on the quality of the key. It is because of this that the program enforces strict key lengths. Your key must be at least as long as the plaintext. I understand that this is a large hassle, that is why I wrote the password generator along with the program.
    Attached Files

  2. #2
    Newbie marcalpv is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    1

    Thumbs up

    Hi Shaden,
    I am interested in pycrypt. Since I am new to this site can you please advise me on how to access it?
    Thanks,
    Pedro

    Hi Shaden,
    Thanks, I have now downloaded the zip file. More feedback soon. I have written an Japanese to English CAT in Python. I want to sell and protect it.
    Regards,
    Pedro
    Last edited by WingedPanther; 07-19-2009 at 08:18 AM. Reason: Double post

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. C Tutorial - XOR Encryption
    By ShadenSmith in forum C Tutorials
    Replies: 8
    Last Post: 03-07-2010, 09:13 PM
  2. Replies: 8
    Last Post: 12-16-2009, 01:53 PM
  3. Tutorial: Starting C# with C# 2008 Express Edition
    By Jordan in forum CSharp Tutorials
    Replies: 20
    Last Post: 07-27-2009, 04:45 AM
  4. Debugging a C++/C File with GDB Debugger
    By awesome001 in forum C and C++
    Replies: 2
    Last Post: 01-01-2009, 07:07 PM

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

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