pyCryptobox
pyCryptoBox is a Python package that allows you to encrypt and decrypt files and folders using the Fernet symmetric encryption algorithm.
Installation
Use the package manager pip to install foobar.
pip install pycryptobox
Usage
Encryption
To encrypt a single file, use the encrypt_file() function:
from pycryptobox import encrypt_file
encrypt_file('/path/to/file')
To encrypt all files in a directory, use the encrypt_dir() function
from pycryptobox import encrypt_files_in_directory
encrypt_files_in_directory('/path/to/directory')
Decryption
To decrypt a single file, use the decrypt_file() function:
from pycryptobox import decrypt_file
file_path = "/path/to/file.txt.locked"
decrypt_file(file_path)
To decrypt all files in a directory, use the decrypt_dir() function:
from pycryptobox import decrypt_files_in_directory
dir_path = "/path/to/directory"
decrypt_files_in_directory(dir_path)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Metadata
Release files for pycryptobox 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pycryptobox-1.0.7.tar.gz | 3.6 kB | Without provenance | Details for pycryptobox-1.0.7.tar.gz |
Release files / pycryptobox-1.0.7.tar.gz
| Download URL | pycryptobox-1.0.7.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc0ae112b0133bd4758e48b098e42ebab17a7390260f8856063be22f018475bf
|
|
BLAKE2b-256 checksum How to use checksums |
65c29ecd907070f1dae7f9246b75374aebcde09fd0e30a8b9ad1829585851934
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.0
|
Security for pycryptobox 1.0.7
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.