An open API service indexing awesome lists of open source software.

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.

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
```