Encryptor of MyPub Cipher Suite.
USAGE:
mypub-encryptor.exe [OPTIONS] --key <PRIVATE KEY> <FILE>
ARGS:
<FILE> Sets an input file path
FLAGS:
-h, --help Print help information
-V, --version Print version information
OPTIONS:
-k, --key <PRIVATE KEY> Sets your private key
-n, --name <FILENAME> Sets a filename after decryption
-o, --output <OUTPUT DIR> Sets your output directory
- Parse CLI argument to
Config
struct; - Read input file;
- Generate passphrase from
GLOBAL_CONFIG
,private_key
, and random identifier; - Encrypt file with passphrase;
- Generate decryptor;
- Output
encrypted file (.enc)
,key (.key)
, anddecryptor (.dec[.exe])
.
config.rs
network
Ethereum networkcontract_address
Deployed publication contract addressdecryptor
Decryptor repository
cargo test
cargo build
cargo build --release