Skip to main content

Encrypt and decrypt files and directories with AES-256-GCM

Project description

ash-encrypt

Encrypt and decrypt files and directories with AES-256-GCM.

PyPI version Python versions License: MIT

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

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

MIT

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ash_encrypt-0.3.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

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

Hashes for ash_encrypt-0.3.0.tar.gz
Algorithm Hash digest
SHA256 64d28345cf7d74766b0af03ea857469c4b47f9d6611c182c7909e65323abd2ef
MD5 bc503592fd61a4ab0e4661ff1fd1cff9
BLAKE2b-256 f700f31be923c73677b17ce808b5a84e0285fc4b7eef230c8e68d63bdcb61409

See more details on using hashes here.

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

Hashes for ash_encrypt-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e835dfb29d8b5e17ff82201b9fac6b2422c0ec7e83111eb83f0a52e72633ecd
MD5 e23154860716bd22a6ba1b193f228805
BLAKE2b-256 671ff13d911bed155f651366212eaf16e4da847e4306c259f5216f71a71c93ed

See more details on using hashes here.

Supported by

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