View Code? Open in Web Editor
NEW
A program that is able to encrypt/decrypt text using the RSA algorithm and another program that tries to break RSA and get the correct private key.
rsa's Introduction
- go to "code" directory
- open terminal and run
python server.py
- keep the openned terminal and run
python client.py
- you can now send message from client to the server while the server is waiting to recieve a message
How to run the RSA attack
- go to "code" directory
- open terminal and run
python attack-rsa.py
rsa.py
and generate_key.py
are utility files used for encryption/decryption and generating private/public keys
![image](https://private-user-images.githubusercontent.com/82395903/241532036-27d77733-8619-49a0-9767-00af43083e34.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUwMjgzODEsIm5iZiI6MTcyNTAyODA4MSwicGF0aCI6Ii84MjM5NTkwMy8yNDE1MzIwMzYtMjdkNzc3MzMtODYxOS00OWEwLTk3NjctMDBhZjQzMDgzZTM0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODMwVDE0MjgwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRmZjZhZjM1MTc3NmQxMjI5MjkyOGY4ZTYxYTEwYWJjZDBhZWMzYWMwZWUzOGY1N2M0ZTlmYmI2N2I3MTlkYTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.dzz07yF2-D68HM8RhX7bOoCk1tdD0mG6O5NpREHYfr4)
rsa's People
Contributors
Watchers