Tag Archives: break encryption

Break RSA Encryption in 10 Lines of Python Code | #Shorts Quantum Computing with Shor's Algorithm

Break RSA Encryption in 10 Lines of Python Code | #Shorts Quantum Computing with Shor's Algorithm



Want to break RSA and ECC cryptography in just 10 lines of python code?
Let me show you how with a quantum computer!

BTC: 3QhHP4484pfGvhRcKNiNc8VeAWSzUuvNrZ
ETH: 0xD40c70e90eDca6E2114F8EbCa4084f3e51Ba7b6C

Join this channel to get access to perks like voting on my next video and behind the scenes!

Or sign up for the same perks on Patreon:

Universal gate quantum computers can run Shor’s algorithm to break modern forms of modern cryptography. It was discovered in 1994!

Using Qiskit Aqua library, you can factor numbers (the basis of RSA cryptography) using Shor’s algorithm with 10 lines of code!

Let’s import Shor, QuantumInstance, and Aer, a quantum simulator.

You can also change the backend to a real quantum chip. This example uses the qasm_simulator, but you can change the backend to a real quantum chip!

We setup the quantum instance and the number of shots, or runs, of this algorithm

Of course, right now we can only factor small numbers, but this demonstrates how far we’ve come with quantum computing!

You can get access to the IBM Quantum Experience and Qiskit documentation here:

#Shorts #quantumcomputing #pythoncoding

source