Skip to main content

crunch-encrypt - Encryption module for the CrunchDAO Platform

Project description

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

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

crunch_encrypt-0.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crunch_encrypt-0.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

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

Hashes for crunch_encrypt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bbdceebe51e4e4b04fe93390664751117ffe948f56f81b09d557e6080c599fc4
MD5 7486f028a3b277e77dd126df56d1cfda
BLAKE2b-256 7cfa01c62b834e4ae018cb998903b0d99d032ebfb06f3f21ce049304f2bb5e0c

See more details on using hashes here.

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

Hashes for crunch_encrypt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e6619f59e89c529f7e946d3aab2866e07e26c25a9bf34bbd323eb5ee1f87b2d
MD5 be01e1ffd99b492a8b0b473280a75783
BLAKE2b-256 603bb351bcc3e01c8fb05a1ed83fe5a4766c0c6e9bc56b54f7770f048078f534

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