beefish 0.1.1

Easy file encryption using pycrypto

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
MIT/X Consortium License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Charles Leifer
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Security
beefish is a Python module that provides easy file encryption for Python, with the help of pycrypto.

Installing

pip install beefish pycrypto

Alternatively:

pip install -e git+git://github.com/coleifer/beefish.git#egg=beefish

Usage

beefish can be used to encrypt and decrypt file-like objects:

from beefish import encrypt, decrypt

# encrypting
with open('secrets.txt') as fh:
 with open('secrets.enc', 'wb') as out_fh:
 encrypt(fh, out_fh, 'secret p@ssword')

# decrypting
with open('secrets.enc') as fh:
 with open('secrets.dec', 'wb') as out_fh:
 decrypt(fh, out_fh, 'secret p@ssword')

you can use a shortcut if you like:

# encrypting
encrypt_file('secrets.txt', 'secrets.enc', 'p@ssword')

# decrypting
decrypt_file('secrets.enc', 'secrets.dec', 'p@ssword')

you can use it from the command-line:

beefish.py -e secrets.txt secrets.enc
beefish.py -d secrets.enc secrets.dec

Last updated on September 12th, 2012

requirements

#file encryption #decrypt files #Python pycrypto #Python #pycrypto #encryption #encrypt

Add your review!

SUBMIT