ozaner / qRNG

A quantum random number generator using IBM's QISKit.
GNU General Public License v3.0
66 stars 20 forks source link

Password generator using quantum random numbers #4

Closed papermache closed 4 years ago

papermache commented 4 years ago

Can this be turned into a password generator using random numbers from Qiskit?

ozanerhansha commented 4 years ago

There's no reason it couldn't. If we were to use UTF-8 for the password's characters, for example, you'd simply have to generate an 8 bit integer for every character you want in the password and just cast that collection of integers to characters. Of course, you'd have to redo invalid characters like whitespace. If you wanted variable length passwords it would be as simple as generating a random integer to see how many characters to use.

That said, depending on the password size, this might not be the most practical solution for password generation because calling one of IBM's quantum computers can take a while.