/Shor-s-Algorithm_Quantum

R.I.P - RSA_cryptography (1977-2019)

Primary LanguageJupyter NotebookApache License 2.0Apache-2.0

forthebadge made-with-python

Python 3.6 made-with-jupyter LinkedIn-profile License GitHub followers GitHub stars

Shor-s-Algorithm_Quantum

A few months we had implemented RSA encryption from scratch with tweakable security parameters. This is a practical implementation of Shor's Algorithm to break our RSA encryption layer.

Shor’s algorithm was invented for integer factorization in 1994. This algorithm is based on quantum computing and hence referred to as a quantum algorithm. The algorithm finds the prime factors of an integer P. Shor’s algorithm executes in polynomial time which is of the order polynomial in log N. On a classical computer, it takes the execution time of the order O((log N)3).

We made use of IBM's Quantum Experience Qiskit module in jupyternotebook for designing the quantum circuit that works on qubits instead of the traditional bits.

Qiskit is an open-source quantum computing software development framework for leveraging today's quantum processors in research, education, and business.

If a quantum computer with a sufficient number of qubits could operate without succumbing to quantum noise and other quantum-decoherence phenomena, then Shor's algorithm could be used to break public-key cryptography schemes, such as the widely-used RSA scheme. RSA is based on the assumption that factoring large integers is computationally intractable.

Cloning

$ git clone https://github.com/7enTropy7/Shor-s-Algorithm_Quantum.git

Dependencies

$ pip3 install -r requirements.txt

How to Run

$ jupyter notebook Breaking_RSA.ipynb

Output

Screenshot from 2019-12-26 02-05-00

Screenshot from 2019-12-26 02-05-22

Screenshot from 2019-12-26 02-03-53

Authors

LinkedIn-profile LinkedIn-profile

License

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details