crunch-encrypt - Encryption module for the CrunchDAO Platform
Project description
Crunch Encrypt Tool
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
difftool 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crunch_encrypt-0.1.0.tar.gz.
File metadata
- Download URL: crunch_encrypt-0.1.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbdceebe51e4e4b04fe93390664751117ffe948f56f81b09d557e6080c599fc4
|
|
| MD5 |
7486f028a3b277e77dd126df56d1cfda
|
|
| BLAKE2b-256 |
7cfa01c62b834e4ae018cb998903b0d99d032ebfb06f3f21ce049304f2bb5e0c
|
File details
Details for the file crunch_encrypt-0.1.0-py3-none-any.whl.
File metadata
- Download URL: crunch_encrypt-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e6619f59e89c529f7e946d3aab2866e07e26c25a9bf34bbd323eb5ee1f87b2d
|
|
| MD5 |
be01e1ffd99b492a8b0b473280a75783
|
|
| BLAKE2b-256 |
603bb351bcc3e01c8fb05a1ed83fe5a4766c0c6e9bc56b54f7770f048078f534
|