Code Monkey home page Code Monkey logo

rsa_criptography's Introduction

RSA Encryption Project

!Warning Python 3.12 does not accept the kivy version we used.

This project, developed for the final semester of the Programming and Algorithms course at Aix-Marseille Université, explores the RSA encryption method. Below are the steps involved in the process:

How RSA Works

Diagram

Step 1:

12616291, 65537

Step 2:

[2787639, 1567162, 5189040, 5189040, 240842, 9249679, 5535986, 12484563, 240842, 924404, 5189040, 12469187, 4833007]

Step 3:

'Hello, World!'

RSA Encription method. There is four files in this repository:

  • Encrypt.py

    This file uses Kivy to create the User Interface and it's where you are going to enter the public key generated by the decrypt.py and write the message to be encrypted.

  • Decrypt.py

    This file uses Kivy to create the User Interface and it's where you are going to enter the key size (bits) to generate the public and private key, and also enter the encrypted message.

  • rsa_simulation.py

    This file runs the process of encrypting and decrypting multiple times to compare how long it takes to decrypt different key sizes. It also plots the chart of it.

  • hack_rsa_parallel.py

    This file tries to hack using brute force the encrypted message. It runs 10 times from 5 bits to 15 bits to have a better measure of how much time it takes. It also plots the chart of it.

Libraries necessary to run the following code:

  • pip install kivy (encrypt.py and decrypt.py)
  • pip install random
  • pip install time
  • pip install matplotlib.pyplot (hack_rsa_parallel.py, rsa_simulation.py)
  • pip install multiprocessing

Project made by:

References:

rsa_criptography's People

Contributors

arthurdpcm avatar luisa-vieira avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.