Skip to main content

Encrypts and decrypts files using a pass phrase.

Project description

This Python package provides tools for encrypting and decrypting files with the ChaCha20 stream cipher, using a key derived from a pass phrase.

Warning

This is a work in progress, published here for testing only. Do not use it for anything important. The file formats and encryption algorithms are subject to change, which could leave you with encrypted files that you cannot decrypt. Also the encrypted files are currently not authenticated, which introduces security vulnerabilities.

Installation

Install this package with pip:

python3 -m pip install --pre chafe

The pypi package name is “chafe”. The python module installed with this command is named “chacha”. The –pre option is needed because the current version of this package is a pre-release.

Usage

The package provides two entry points named encrypt and decrypt. That means that if this module is in your Python path then the module can be used as follows:

To encrypt a file named myfile:

% python3 -m chacha.encrypt myfile

You will be prompted for a password, and an encrypted file named myfile.cha will be created. The password will be visible until the encryption is finished, then erased. (So write it down first!)

To decrypt myfile.cha:

% python3 -m chacha.decrypt myfile.cha

You will be prompted for the password, and a decrypted file named myfile will be created. The password will be visible until the decryption is finished, then erased.

If you install this module with pip then the commands will simply be:

% chacha-encrypt myfile

and

% chacha-decrypt myfile.cha

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

chafe-1.0.0a5.tar.gz (54.8 kB view details)

Uploaded Source

Built Distribution

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

chafe-1.0.0a5-cp312-cp312-macosx_10_9_universal2.whl (93.4 kB view details)

Uploaded CPython 3.12macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file chafe-1.0.0a5.tar.gz.

File metadata

  • Download URL: chafe-1.0.0a5.tar.gz
  • Upload date:
  • Size: 54.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.5

File hashes

Hashes for chafe-1.0.0a5.tar.gz
Algorithm Hash digest
SHA256 0efa8aadc1cfe54c40efec5f12cce23ec3890540c30ad47b5d1c72bc63ef1940
MD5 c83bf2fbdb2dbc829cddc5a0dcc43b93
BLAKE2b-256 d349c2b059ee0715bdd191eced14b9e0c10868f64f58bb407bb0bf2d69889080

See more details on using hashes here.

File details

Details for the file chafe-1.0.0a5-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for chafe-1.0.0a5-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 122874e33d81db4a5dd5cd680fc562b68a39966af0b6f75029de7b60193e15f2
MD5 a69b4162d00ce3bae006637a0f53448f
BLAKE2b-256 ac8f079db88b674e3631c93c2b15abc40ea87fb327ba7c999f077efc9ab08712

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