https://github.com/waddaboo/crypto-cli
A simple CLI tool that can generate RSA key pair, encrypt and decrypt message.
https://github.com/waddaboo/crypto-cli
cli rsa-cryptography rsa-decryption rsa-encryption rust
Last synced: 10 months ago
JSON representation
A simple CLI tool that can generate RSA key pair, encrypt and decrypt message.
- Host: GitHub
- URL: https://github.com/waddaboo/crypto-cli
- Owner: waddaboo
- Created: 2023-06-01T11:57:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-01T13:33:04.000Z (over 2 years ago)
- Last Synced: 2025-01-29T04:47:03.825Z (12 months ago)
- Topics: cli, rsa-cryptography, rsa-decryption, rsa-encryption, rust
- Language: Rust
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Crypto CLI
A Rust CLI tool to generate RSA key pair, encrypt and decrypt message.
## Features
- Generate private and public RSA key pairs.
- Encrypt message using public key with the option of hex encoding.
- Decrypt message using private key with the option of hex decoding.
## Getting Started
1. Run the line below to get more information on each command.
```
cargo run -- --help
```
2. Run a specific command.
```
cargo run --
```
## Commands
1. You can get more specific information about any commands by using `--help` with a specific command. For example, you can run any of the following commands for varying level of detail:
- ```
cargo run -- --help
```
- ```
cargo run -- encrypt --help
```
- ```
cargo run -- decrypt --help
```
2. More information on shorthand commands like `--text` (shortcut `-t`) can be found in `--help`.
3. Currently available commands:
- ```
cargo run -- generate
```
- ```
cargo run -- encrypt --text --public_exponent --modulus
```
- ```
cargo run -- decrypt --text --private_exponent --public_exponent --modulus
```
- ```
cargo run -- encrypt-encode --text --public_exponent --modulus
```
- ```
cargo run -- decrypt-decode --text --private_exponent --public_exponent --modulus
```
4. Test commands for testing RSA encryption decryption cases:
```
cargo test
```