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:
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.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.
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 06:18 AM. Reason: Double post
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks