Skip to main content

Crunch Encrypt Tool

PyTest

This Python library is designed for the CrunchDAO Platform, exposing the encryption tools in a very small CLI.

Installation

Use pip to install the crunch-encrypt.

pip install --upgrade crunch-encrypt

Usage for ECIES

This encryption requires two keys:

  • a private key for decryption
  • and a public key for encryption.

An ephemeral key is also derived from the public key for each file. In order for the file to be decrypted, this ephemeral key must be provided.

Generate a Key Pair

crunch-encrypt ecies key-pair

Encrypt a file

crunch-encrypt ecies encrypt hello.txt hello.txt.enc

[!TIP] To generate a dummy file, do the following:

echo 'Hello World!' > hello.txt

Decrypt a file

crunch-encrypt ecies decrypt hello.txt.enc hello.txt.dec

[!TIP] Use the diff tool to validate the decryption:

diff hello.txt hello.txt.dec

Contributing

Pull requests are always welcome! If you find any issues or have suggestions for improvements, please feel free to submit a pull request or open an issue in the GitHub repository.

License

MIT

Metadata

Release files for crunch-encrypt 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crunch-encrypt 0.1.0
File Size Uploaded
crunch_encrypt-0.1.0.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crunch-encrypt 0.1.0
File Interpreter ABI Platform
crunch_encrypt-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.7 kB

Release files / crunch_encrypt-0.1.0.tar.gz

Download URL crunch_encrypt-0.1.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bbdceebe51e4e4b04fe93390664751117ffe948f56f81b09d557e6080c599fc4
BLAKE2b-256 checksum
How to use checksums
7cfa01c62b834e4ae018cb998903b0d99d032ebfb06f3f21ce049304f2bb5e0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release files / crunch_encrypt-0.1.0-py3-none-any.whl

Download URL crunch_encrypt-0.1.0-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e6619f59e89c529f7e946d3aab2866e07e26c25a9bf34bbd323eb5ee1f87b2d
BLAKE2b-256 checksum
How to use checksums
603bb351bcc3e01c8fb05a1ed83fe5a4766c0c6e9bc56b54f7770f048078f534
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page