Encrypt and decrypt files and directories with AES-256-GCM
Project description
ash-encrypt
Encrypt and decrypt files and directories with AES-256-GCM.
Features
- AES-256-GCM encryption — authenticated encryption with strong confidentiality and integrity guarantees
- File and directory support — encrypt individual files or entire directories
- Simple CLI — intuitive command-line interface with encrypt/decrypt modes
- Progress bars — visual feedback for large file operations via tqdm
- Streaming encryption — handles large files without loading them entirely into memory
- Cross-platform — works on Linux, macOS, and Windows
Installation
pip install ash-encrypt
Quick Start
Encrypt a file
ash-encrypt e -p <password> -f <file>
This produces a .ash encrypted file. For example:
ash-encrypt e -p mysecretpass -f document.pdf
# Output: document.ash
Decrypt a file
ash-encrypt d -p <password> -f <file.ash>
ash-encrypt d -p mysecretpass -f document.ash
# Output: document.pdf
CLI Flags
| Flag | Description |
|---|---|
e |
Encryption mode |
d |
Decryption mode |
-p |
Password |
-f |
File or directory path |
Supported Platforms
- Linux
- macOS
- Windows
Requirements
- Python 3.8+
- pycryptodome >= 3.15
- tqdm >= 4.60
Development
Clone the repository and install with dev dependencies:
git clone https://github.com/shimafallah/ash_encryptor.git
cd ash_encryptor
pip install -e ".[dev]"
License
Links
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
ash_encrypt-0.3.0.tar.gz
(9.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ash_encrypt-0.3.0.tar.gz.
File metadata
- Download URL: ash_encrypt-0.3.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64d28345cf7d74766b0af03ea857469c4b47f9d6611c182c7909e65323abd2ef
|
|
| MD5 |
bc503592fd61a4ab0e4661ff1fd1cff9
|
|
| BLAKE2b-256 |
f700f31be923c73677b17ce808b5a84e0285fc4b7eef230c8e68d63bdcb61409
|
File details
Details for the file ash_encrypt-0.3.0-py3-none-any.whl.
File metadata
- Download URL: ash_encrypt-0.3.0-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e835dfb29d8b5e17ff82201b9fac6b2422c0ec7e83111eb83f0a52e72633ecd
|
|
| MD5 |
e23154860716bd22a6ba1b193f228805
|
|
| BLAKE2b-256 |
671ff13d911bed155f651366212eaf16e4da847e4306c259f5216f71a71c93ed
|