Updated documentation
All checks were successful
Build / release (push) Successful in 1m51s

Signed-off-by: spv <spv0x04@proton.me>
This commit is contained in:
spv 2024-07-26 14:09:12 +02:00
parent 65c912e5d6
commit 284af2dd89
No known key found for this signature in database
GPG Key ID: A527CD7A0F9353D8

View File

@ -4,3 +4,20 @@ my rsa implementation in rust using as few libraries as my mental wellbeing coul
Im using clap so documentation is not really required the binary documents itself. Im using clap so documentation is not really required the binary documents itself.
idk idk
## Usage
1. Generate a pair of keys
```bash
./rsa generate <-b/--bitsize keysize>
```
2. Encrypt some data with public key
```bash
./rsa encrypt public_key "Hello"
```
Will write the encrypted data to `message.enc`
3. Decrypt it
```bash
./rsa private_key message.enc
```
Will print `Hello`