Twofish For Python
Twofish for Python

Menu:

Home

News
Software

Documentation
Links
EMAIL Me!

EFF
OpenDVD

An Implementation of the Twofish Cipher

A "C" Module for Python

This is a module for Python which wraps Dr. Brian Gladman's "C" implementation of Counterpane's TwoFish encryption algorithm, a candidate for the Advanced Encryption Standard competition.

At the moment this module only works under FreeBSD(ELF) and Linux, due to the fact that it uses /dev/urandom to provide cryptographically strong pseudo-random numbers for use as keys and initialization vectors (note: do NOT modify the software to use Python's rand() or whrandom() modules to generate initialization vectors and key data! Those PRNG's are NOT cryptographically strong, since they produce PREDICTABLE data, thus reducing an attacker's efforts to near-zilch!). A revised PRNG which is cryptographically strong has been designed, it will be integrated as soon as possible. This page will describe the implementation of the TwoFish encryption module for Python. I hope to make this a source of general encryption information too, such as, for example, "what is CFB mode and when do I want to use it?".

Last week I had the flu and am still catching up. Thus not all of this page is here yet, but feel free to browse the source code:

URL
HTTP: http://twofish-py.sourceforge.net/twofishmodule-0.3.tar.gz
http://twofish-py.sourceforge.net/twofishmodule-0.5.tar.gz

Disclaimers: This page is a personal page of Eric Lee Green. The twofish module source code is released as Open Source software under a BSD-style license courtesy of Enhanced Software Technologies Inc., the makers of BRU, the #1 commercial tape backup utility for Linux/Unix. The actual low-level TwoFish encryption code is released as Open Source software under a BSD-like license by Dr. Brian Gladman. The revised PRNG for generating challenge and key data (which has not been integrated yet) contains MD5 code that is copyrighted by RSA Data Security Inc. and released under a BSD-style license.

Please note that this software is released with NO WARRANTY and on an AS-IS BASIS. It is not an official supported product of Enhanced Software Technologies. This software is copyrighted by Enhanced Software Technologies and other contributors. Please read the file LICENSE.ocotillo in the actual distribution for full licensing terms.


Eric Lee Green

Note that everything on this page represents my own opinions and not the opinions of my employer, SourceForge, my mother, my best friend, or my cat (well, MAYBE the cat, since we all know who the boss is around the house!).

Created by 'm4web'. Last modified: Wed Feb 02 21:10:21