simple file encryption using pycrypto
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
beefish-0.1.2.tar.gz
(4.2 kB
view details)
File details
Details for the file beefish-0.1.2.tar.gz.
File metadata
- Download URL: beefish-0.1.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bffaf3971f9a2c9a4e67e12f470e30cea193233038ef3346644c6155156932d
|
|
| MD5 |
b116430908dfa53ae603da72cf16c33a
|
|
| BLAKE2b-256 |
3cf4ce3f2a81779d15e611da2d92af4127e621aa0eba57ca90ae136dbc0a9b0f
|