skip to navigation
skip to content

Not Logged In

beefish 0.1.2

simple file encryption using pycrypto

Easy file encryption using pycrypto

installing

pip install beefish pycrypto

Alternatively:

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

Dependencies:

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
 
File Type Py Version Uploaded on Size
beefish-0.1.2.tar.gz (md5) Source 2014-04-11 4KB
  • Downloads (All Versions):
  • 23 downloads in the last day
  • 125 downloads in the last week
  • 372 downloads in the last month