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 installes as a dependency

Installation

Install this package with pip:

python3 -m pip install chafe

The pypi package name is “chafe”. The python module installed with this command is named “chacha”.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: chafe-1.0.0a2.tar.gz
  • Upload date:
  • Size: 11.3 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.0a2.tar.gz
Algorithm Hash digest
SHA256 bd31330937044979cb2e4609d1bb909aee19c956f4472b82a73e3b34d2ed03e0
MD5 7eba709bb85e27bb969e8c76da867739
BLAKE2b-256 0e28e0d8db4b466207cbe747dacb574a9c009df07031d5e6c345834d7b004452

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chafe-1.0.0a2-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.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 8d2829ea6548487a954197794e3d7c2a6bafba3e4e1e9a0dfc4aae9d143605d0
MD5 9b363cd0c7970f687fc9d606459d3384
BLAKE2b-256 9502250f476e66997c7e5e83165985828a8837165c4a618a280a00c51039a767

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