logo

cs.py

Here is a script (in python) implementing CipherSaber CS-2 (and CS-1). cs.py provides also some base64 functionality, and quite no checks...
See http://ciphersaber.gurus.com for information about CipherSaber.
This is probably of no use to anybody.

  • Basically, it is a python implementation of the ARC4 cipher algorithm.
  • The text to encrypt must be passed in a 8bit format (aka not a unicode string), due to the use of the array module.
  • ARC4 is probably not a good choice if you want top level encryption.
  • If you need encryption tools in python, see the Python Cryptography Toolkit.

Documentation

The output of cs.py :



cs.py v.1.1: CS-2 encoder/decoder with base64 capabilities.
(c) 2003-2005 jd@hamete.org, perl artistic license, or whatever other free 
license you want, at your choice :-).
usage:
cs.py [-b] [-n N] [-e|-d] passphrase <input >output
    -b: use base64 encrypted input (-d) or base64 encrypted output (-e),
    -n N: CS-2 loop of N iterations (default 20, use N=1 for CS-1),
    -e passphrase : encrypt using the passphrase,
    -d passphrase : decrypt using the passphrase.
	

Files