Crates.io | conceal-core |
lib.rs | conceal-core |
version | 0.2.0 |
source | src |
created_at | 2021-02-26 19:03:19.232953 |
updated_at | 2021-02-26 19:03:19.232953 |
description | A file encryption tool that leverage. |
homepage | https://github.com/tyrchen/conceal |
repository | https://github.com/tyrchen/conceal |
max_upload_size | |
id | 361032 |
size | 22,626 |
A file encryption tool that leverage noise protocol to provide best-in-class security to your private files. With conceal, you can send encrypted files through insecure channel, and only the receiver who have the right private key could calculate the encryption key and decrypt the file. The receiver could optionally authenticate the sender.
First of all, generate your id (private key). It will be stored in your ~/.conceal/identity
.
$ conceal generate
Keypair generated at: "/Users/tchen/.conceal/identity"
If you want to see your id (this could be given to others so they could encrypt file for you):
$ conceal show-id
Id: 7mVtUDwqKuCkM7CQxZ6BZ7i4uvmTLB7RF7HsozVV9UH7
To encrypt a file for a recipient (here I encrypt the file for myself):
$ conceal encrypt /tmp/road.jpg /tmp/road1.jpg --recipient 7mVtUDwqKuCkM7CQxZ6BZ7i4uvmTLB7RF7HsozVV9UH7
encrypted 1807958 bytes for "/tmp/road1.jpg"
To decrypt a received file:
$ conceal decrypt /tmp/road1.jpg /tmp/road2.jpg
decrypted 1807410 bytes for "/tmp/road2.jpg"
Files (original, encrypted, decrypted):
$ ls -l /tmp/road*
-rw-r--r--@ 1 tchen wheel 1807354 Jan 2 20:47 /tmp/road.jpg
-rw-r--r-- 1 tchen wheel 1807958 Jan 2 20:48 /tmp/road1.jpg
-rw-r--r-- 1 tchen wheel 1807354 Jan 2 20:48 /tmp/road2.jpg