crypt4gh-rust
Rust implementation for the Crypt4GH encryption format.
CLI
Installation
From source
Requirements: Rust
Binaries
In the releases page, You can find compiled binaries for:
Usage
Utility for the cryptographic GA4GH standard, reading from stdin and outputting to stdout.
USAGE:
crypt4gh [FLAGS] [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-v, --verbose Sets the level of verbosity
-V, --version Prints version information
SUBCOMMANDS:
decrypt Decrypts the input using your secret key and the (optional) public key of the sender.
encrypt Encrypts the input using your (optional) secret key and the public key of the recipient.
help Prints this message or the help of the given subcommand(s)
keygen Utility to create Crypt4GH-formatted keys.
rearrange Rearranges the input according to the edit list packet.
reencrypt Decrypts the input using your (optional) secret key and then it reencrypts it using the
public key of the recipient.
Example
Alice and Bob generate both a pair of public/private keys.
Bob encrypts a file for Alice:
Alice decrypts the encrypted file:
Library
Library installation
Add this to your Cargo.toml
:
[]
= "0.1.2"
Usage (in Rust)
Use the exposed functions:
Documentation
To learn more about Crypt4GH, see the official documentation.
Troubleshooting
To build from source on Windows, you should first have installed the MSVC Build Tools.