Skip to content

A program that is able to encrypt/decrypt text using the RSA algorithm, and chat app in which chat messages are encrypted.

License

Notifications You must be signed in to change notification settings

MUSTAFA-Hamzawy/RSA-Assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Table Of Contents

About

1- A program that is able to encrypt/decrypt text using the RSA algorithm.
2- Another program that tries to break RSA and get the correct private key.
3- Chat app using sockets, chat messages are encrypted.

Video

Encrypt/Decrypt

normal.webm

Chat

chat.webm

Breaking RSA

break.webm

Built With

  • PHP
  • PHP web sockets
  • GMP (for maths)

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

  • install php
  • install apache2 ( or any local serve )

How to try the project

  1. Clone the repo
    git clone https://github.com/MUSTAFA-Hamzawy/RSA-Assignment
  1. navigate to the path in your localhost files example: localhost/crypto
  2. To try the chat mode:-
    • Open a command prompt and run the server => php server.php
    • Open another command prompt and run the client => php client.php
    • Enter the public key of the client.
    • Start chatting.

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  • If you have suggestions for adding or removing projects, feel free to open an issue to discuss it, or
  • Directly create a pull request after you edit the files with necessary changes.

Creating A Pull Request

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

See LICENSE for more information.

About

A program that is able to encrypt/decrypt text using the RSA algorithm, and chat app in which chat messages are encrypted.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published