Answer the question
In order to leave comments, you need to log in
How to select characters with position check?
Hello!
There is a database with a label users and fields <login>, <password>. Suppose I take the record [('admin', '123456')]
how to make it so that when entering the login `admin` the "password entry" of the form comes out: (suppose) enter position 1 = [insertNumber(1)], enter position 6 = [[insertNumber(6)] and so that at login each time there is a different number of positions that you need to enter (that is, the user enters the password not entirely, but only certain positions) Otherwise,
I could not find how to pull out a certain field with the required password ( except to bring it out -
"SELECT password FROM users WHERE login=?",(currentLogin,))
) nor how to implement the user verification method described above (because in addition to entering random positions, you obviously need to check them - but again I could not find how to make a text array from the SQL table field)
Answer the question
In order to leave comments, you need to log in
In the twenty-first century, billion dollar corporations leak 200 million accounts every month directly from the database, and we have passwords in the database in clear text.
The only place where the password is checked in this way, I met only in SecureBoot, and this is wildly inconvenient.
But if you are interested in the implementation, I can offer the following:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question