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
Configstruct; - 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
networkEthereum networkcontract_addressDeployed publication contract addressdecryptorDecryptor repository
cargo testcargo buildcargo build --release