https://github.com/shhossain/rsa_encryption_python
https://github.com/shhossain/rsa_encryption_python
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shhossain/rsa_encryption_python
- Owner: shhossain
- Created: 2022-03-14T13:03:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-14T13:50:22.000Z (over 3 years ago)
- Last Synced: 2025-01-26T05:24:46.073Z (8 months ago)
- Language: Python
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My Custom rsa encryption Algorithm from start
**I was learing about rsa and thought how hard it is to make, making a fully working algorithm was not that hard but making it fast is ...completly another thing, so just created a basic rsa algorithm with simple public and private key(I tried to crack it and end result is ... maybe I need a 🤔 faster computer)**
**How to use (Only for me if I forget somehow😊)**
```
from rsa import RSA
import time #Only for time checkingr = RSA()
print(r.public_key,r.private_key)
text = 1000 * "This is a test"start = time.process_time()
t = r.encrypt(text)
print(t)d = r.decrypt(t)
print(d)print(time.process_time() - start)
```
**Took about 0.002s to complete(👆code) and I only used 200 prime numbers, time increase o(n²)(maybe!!)**