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 ChaCha stream cipher, using a key derived from a pass phrase.

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.0a1.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.0a1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chafe-1.0.0a1.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.0a1.tar.gz
Algorithm Hash digest
SHA256 b66463ce634447226d3d234f454ec818048bcbc7811c5b7042fd55532e02b719
MD5 1e09f374814827128ba0a409f0e19315
BLAKE2b-256 09b320c3a147b9a4922b833f645ca6106baada8c330a8337b9b566cd932d08d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chafe-1.0.0a1-py3-none-any.whl
  • Upload date:
  • Size: 11.8 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.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e6bb0bc5e020563bde4f592e39d5a012d81b57bc772dd3d862f25f2400895cf
MD5 cc0a5992f5451712a3bb707665817764
BLAKE2b-256 1c2fc909fad862e91eb1fdf5209a52e5166a68a59b360b53e295e69017453cd1

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