From 284af2dd89d076fc7aad763f1779cf110a9a8ab4 Mon Sep 17 00:00:00 2001 From: spv Date: Fri, 26 Jul 2024 14:09:12 +0200 Subject: [PATCH] Updated documentation Signed-off-by: spv --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 65812bb..71dc0b2 100644 --- a/README.md +++ b/README.md @@ -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. 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`