feat: add crypt4ghfs-rust

This commit is contained in:
2023-01-08 11:48:40 +08:00
parent c8837b21f6
commit 8f6805f3e3
30 changed files with 2959 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
run:
echo "The passphrase is 'bob'"
cargo run -- --conf tests/configs/fs.conf tests/mountpoint
keygen:
crypt4gh keygen --pk testkey.pub --sk testkey.sec
encrypt:
crypt4gh encrypt --sk tests/keys/testkey.sec --recipient_pk tests/keys/bob.pub < tests/decrypted/file.txt > tests/rootdir/file.txt.c4gh
decrypt:
echo "The passphrase is 'bob'"
crypt4gh decrypt --sk tests/keys/bob.sec < tests/rootdir/file.txt.c4gh
umount:
umount tests/mountpoint