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. The package uses the ChaCha20 implementation in the pypi cryptography package, which will be installed as a dependency

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.0a3.tar.gz (11.1 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.0a3-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chafe-1.0.0a3.tar.gz
  • Upload date:
  • Size: 11.1 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.0a3.tar.gz
Algorithm Hash digest
SHA256 6e6ecf1a4094a499031f9987b5a00fbf938b1f1adb223bb8aa1256e298604d58
MD5 729ae3313854d6b750385102852604d6
BLAKE2b-256 6b38b834aa27fc9daeae84ba318cd51677cc078d924823e1a34b73c1d78ec19b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chafe-1.0.0a3-py3-none-any.whl
  • Upload date:
  • Size: 11.9 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.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 e646ca9ee4de0759faa7dfcccc66cea8415facf0718338a5a4d9cfc58a68432a
MD5 d908b8425222c54d254d9ad90894345b
BLAKE2b-256 c8296ee94889f28ba4f9a9d59990afe0c6e7a6821f85d45816e8c700472fd2ba

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