Skip to content

pyCryptobox is a Python package that provides a simple way to encrypt and decrypt files and directories using the AES encryption algorithm.

Notifications You must be signed in to change notification settings

LpCodes/pycryptobox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI version DownloadsPublish Package

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.

About

pyCryptobox is a Python package that provides a simple way to encrypt and decrypt files and directories using the AES encryption algorithm.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages