Go Back   CodeCall Programming Forum > Software Development > Classes and Code Snippets
Register Blogs Search Today's Posts Mark Forums Read

Classes and Code Snippets Post your source code and classes here

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-29-2009, 01:59 PM
ShadenSmith's Avatar
Newbie
 
Join Date: May 2009
Location: Kentucky - USA
Age: 18
Posts: 19
ShadenSmith will become famous soon enough
Send a message via AIM to ShadenSmith Send a message via MSN to ShadenSmith
[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:

Quote:
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 To view attachments in this forum your post count must be 1 or greater. You currently have 0 posts.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-18-2009, 09:34 PM
Newbie
 
Join Date: Jul 2009
Posts: 1
marcalpv is an unknown quantity at this point
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 09:18 AM.. Reason: Double post
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
pycrypt python encryption



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
C Tutorial - XOR Encryption ShadenSmith C Tutorials 7 01-31-2010 11:24 PM
[HELP] C++ program that will ask the user to enter not greater than to 15 numbers Kyram143 C and C++ 8 12-16-2009 02:53 PM
Tutorial: Starting C# with C# 2008 Express Edition Jordan CSharp Tutorials 20 07-27-2009 05:45 AM
Debugging a C++/C File with GDB Debugger awesome001 C and C++ 2 01-01-2009 08:07 PM


All times are GMT -5. The time now is 08:15 AM.


vBulletin v3.8.0 ©2010, Jelsoft Enterprises Ltd.


no new posts

LinkBacks Enabled by vBSEO 3.1.0