A package for encrypting and decrypting files
Project description
pyCryptobox
pyCryptobox is a package in Python that offers a straightforward approach to safeguard your confidential data by encrypting and decrypting files and directories using the AES 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
file_path = r"/path/to/file.txt"
encrypt_file(file_path)
To encrypt all files in a directory, use the encrypt_dir()
function
from pycryptobox import encrypt_dir
dir_path = "/path/to/directory"
encrypt_dir(dir_path)
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_dir
dir_path = "/path/to/directory"
decrypt_dir(dir_path)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
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
Built Distribution
File details
Details for the file pycryptobox-1.0.5.tar.gz
.
File metadata
- Download URL: pycryptobox-1.0.5.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0c7dc0b6f59342a9c1baf381c6d29d2821da3ef1814eb19be602e339e9b7020 |
|
MD5 | 88743a143348b717e6ba68b6c3c5f0f2 |
|
BLAKE2b-256 | 059137cd166c618bd83baebb03a794bb3cd34bb052dc8753ff3362931f84b5e1 |
File details
Details for the file pycryptobox-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: pycryptobox-1.0.5-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64dd7547f36be0a413caf406708c3b7879e89b32171db698cfc45d2570755eaa |
|
MD5 | 3f3bccc4425f020a118300c063b2c859 |
|
BLAKE2b-256 | 8105b9ebef2bff6e9f4e9c7f13e573ecde25dfa1f6d001b8e740c3546b1993b2 |