This Python library is designed for the CrunchDAO Platform, exposing the encryption tools in a very small CLI.
Use pip to install the crunch-encrypt.
pip install --upgrade crunch-encryptThis 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.
crunch-encrypt ecies key-paircrunch-encrypt ecies encrypt hello.txt hello.txt.encTip
To generate a dummy file, do the following:
echo 'Hello World!' > hello.txtcrunch-encrypt ecies decrypt hello.txt.enc hello.txt.decTip
Use the diff tool to validate the decryption:
diff hello.txt hello.txt.decPull 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.