Skip to main content

beefish3

Fork of beefish : https://github.com/coleifer/beefish.git
Easy file encryption using pycryptodome.

alt text

installing

pip install pycryptodome beefish

Dependencies:

command-line options

Usage:

beefish3.py [-tkedaq] in_file [out_file]
  • -e - encrypt the provided in_file and write to out_file
  • -d - decrypt the provided in_file and write to out_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

Metadata

Release files for beefish3 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for beefish3 0.1
File Size Uploaded Provenance
beefish3-0.1.tar.gz 4.3 kB Without provenance Details

Release files / beefish3-0.1.tar.gz

Download URL beefish3-0.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
977e847e6b0b65d808ff79067ed16f3162ee6d99cd88851545282d9982982b63
BLAKE2b-256 checksum
How to use checksums
886aee5c3fe55d933e964afa4d39f007e06e71b0a34e71fcd2ee4d122c403256
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Security for beefish3 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page