Skip to main content

A package for encrypting and decrypting files

Project description

PyPI version Downloads

Publish Package

pyCryptobox

pyCryptobox is a Python package that provides a simple way to encrypt and decrypt 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

pycryptobox-1.0.3.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

pycryptobox-1.0.3-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page