hesham-rsa/README.md

29 lines
826 B
Markdown
Raw Permalink Normal View History

2020-07-10 06:25:20 +02:00
2020-08-28 01:47:01 +02:00
# hesham-rsa
A simple program written in python to implement RSA public encryption. Used as Course EE-305 project KAU.
2020-07-10 06:25:20 +02:00
# Installation
There is no packaging or installation. Works in current dir (portable) for now.
2020-08-28 01:47:01 +02:00
git clone https://apollo-server.ddns.net/gitea/Hesham/hesham-rsa.git
2020-10-17 10:03:39 +02:00
cd hesham-rsa
2020-08-28 01:47:01 +02:00
2020-07-10 06:25:20 +02:00
# Usage
2020-09-06 10:32:58 +02:00
./rsa.py [COMMAND] [ARGS]
2020-07-10 06:25:20 +02:00
or
2020-10-17 10:03:39 +02:00
python rsa.py [COMMAND] [ARGS]
2020-07-10 06:25:20 +02:00
## generating keys
2020-08-28 01:47:01 +02:00
to generate a key pair with and ID
2020-07-10 06:25:20 +02:00
2020-09-10 08:54:53 +02:00
./rsa.py gen [keysize] [keyID]
2020-10-17 10:03:39 +02:00
All generated keys are saved in {$working_dir}/saves/
2020-07-10 06:25:20 +02:00
## encrypting
2020-08-28 01:47:01 +02:00
./rsa.py encrypt "[message]" [RecieverKeyID] [SenderSignetureKeyID]
2020-10-17 10:03:39 +02:00
## decrypting
Assuming the encrypted message is encrypted to myPrivateKey
./rsa.py decrypt "[cipher]" [myPrivateKeyID]
The signature is checked with all public keys stored in keys directory