Git Product home page Git Product logo

webclinic017 / rsa-encryption-system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gautam8387/rsa-encryption-system

0.0 0.0 0.0 35 KB

I have worked on developing the raw implementation of RSA without using any library. It uses modular arithmetic to deal with large numbers. The program is working efficiently for 1024 bits of prime numbers. I have also tried using FPM (fast polynomial multiplication) over FFT and integrated everything a the socket program.

Python 100.00%

rsa-encryption-system's Introduction

RSA-Encryption-System

We have worked on RSA algorithm as a project.

First of all, our goal was to implement RSA from scratch.

*RSA_1.py contains the raw implementation of RSA without using any library. We used modular multiplication, modular exponentiation to deal with large numbers and we have created a package called bignumber with the program of operators: addition, substraction, multiplication and division. The package works on all arithmetic operations for the RSA_1.py. The program is working efficiently for 1024 bits and can be very easily extended upto 2048 bits and beyond.

Now, the idea was to explore the means to make RSA unique. In order to do that, instead of using bigmult to multiply two large numbers, we implemented fast polynomial multiplication with the help of FFT(Fast fourier transformation).

*In RSA_2.py, We simply extended what we have done in RSA_1 by including the FFT multiplication.

Then, we wanted to think of how we can practically use all the code that we have written. In order to do that, we explored the means of socket programming where we used RSA_1 and RSA_2 to secure a message sent over the a communication channel using socket where the client (sender) encrypt and the server (receiver) decrypt the message using the two programs (RSA_1 and RSA_2) of cryptography.

To Run the program, first run the file socket_server.py in terminal. Then run any of the two files - socket_client_RSA_1.py or socket_client_RSA_2.py Now type anything on client side and it'll be visible on the server.

rsa-encryption-system's People

Contributors

gautam8387 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.