Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 791 Bytes

README.md

File metadata and controls

43 lines (27 loc) · 791 Bytes

Euler Cryptor

RSA-implementation in Rust, provides a command line tool and a libary

Installation

cargo install --path .

Examples

Generating keys
$ euler-cryptor generate-key-pair --key-directory ./keys --key-pair-name mykeys
Encrypting file contents
$ cat file.txt | euler-cryptor encrypt --key-path ./keys/mykeys_pub.pem > encrypted_file.txt

or

$ euler-cryptor encrypt --key-path ./keys/mykeys_pub.pem --input file.txt --output encrypted_file.txt
Decrypting file contents
$ cat encrypted_file.txt | euler-cryptor decrypt --key-path ./keys/mykeys_sec.pem > file.txt

or

$ euler-cryptor decrypt --key-path ./keys/mykeys_sec.pem --input encrypted_file.txt --output file.txt