Skip to content

CLI tool which implements RSA encryption: symmetric public and private key cryptography based on the Euler's Theorem https://en.wikipedia.org/wiki/Euler%27s_theorem

License

Notifications You must be signed in to change notification settings

amoilanen/euler-cryptor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

CLI tool which implements RSA encryption: symmetric public and private key cryptography based on the Euler's Theorem https://en.wikipedia.org/wiki/Euler%27s_theorem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages