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 Dan Bernstein’s ChaCha20 stream cipher, using a key derived from a pass phrase. Currently the package uses the ChaCha20Poly1305 class defined in the pypi package cryptography, which will be installed as a dependency

Warning

This is a work in progress, published here for testing only. Do not use it for anything important. The file protocols are subject to change, which could leave you with encrypted files that you cannot decrypt.

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.0a4.tar.gz (11.7 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.0a4-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chafe-1.0.0a4.tar.gz
  • Upload date:
  • Size: 11.7 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.0a4.tar.gz
Algorithm Hash digest
SHA256 cf29c921d5921b4855f5f741c243487f6e04e0ff64e12a634524c0171b1218c3
MD5 bbdce785f7c5ccd673152641ed36cec4
BLAKE2b-256 a30ee6e6cc5d1c27c6f7f08dbf312776612063f7d2ccb4c1a8794a58ecbcc879

See more details on using hashes here.

File details

Details for the file chafe-1.0.0a4-py3-none-any.whl.

File metadata

  • Download URL: chafe-1.0.0a4-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.5

File hashes

Hashes for chafe-1.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 3e75875ceefe660fa587203f14dd7c555fb4a85deee855662b62de17a8cca172
MD5 416119bc4674a5352494bdeb8a4bc1ee
BLAKE2b-256 d3b06493f3ad2c174d7bdbb30e2f136ffa2f6c4c6866092afd9e96a44afdcfd3

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