No project description provided
Project description
beefish3
Fork of beefish : https://github.com/coleifer/beefish.git
Easy file encryption using pycryptodome.
installing
pip install pycryptodome beefish
Dependencies:
command-line options
Usage:
beefish3.py [-tkedaq] in_file [out_file]
-e
- encrypt the providedin_file
and write toout_file
-d
- decrypt the providedin_file
and write toout_file
-k
- specify password as command-line argument (if unspecified you will be securely prompted).-a
- use AES-256 instead of the default "Blowfish" cipher.-t
- run test suite-q
- quiet mode (controls verbosity of test output).
examples
beefish3 can be used to encrypt and decrypt file-like objects:
from beefish3 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:
from beefish3 import encrypt_file, decrypt_file
# 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:
beefish3.py -e secrets.txt secrets.enc
beefish3.py -d secrets.enc secrets.dec
to use AES-256 cipher instead of the default, which is blowfish:
beefish3.py -a -e secrets.txt
beefish3.py -a -d secrets.enc
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
beefish3-0.1.tar.gz
(4.3 kB
view details)
File details
Details for the file beefish3-0.1.tar.gz
.
File metadata
- Download URL: beefish3-0.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 977e847e6b0b65d808ff79067ed16f3162ee6d99cd88851545282d9982982b63 |
|
MD5 | a3ba51d9463c025c8b9eefcd0e629a0d |
|
BLAKE2b-256 | 886aee5c3fe55d933e964afa4d39f007e06e71b0a34e71fcd2ee4d122c403256 |