I am creating a desktop application that uses face as the password. Until now, I have been able to identify people and then authenticate them based on their faces.
What the application does is:
If a person is enrolled and presents his face in front of the web camera, the application identifies the person and automatically opens a website, fills the username and password textboxes, and automatically logs into the account associated with that face. So, the user doesn't even need to type his password.
Now, the main problem is, at the time of enrolment, the user has to present his face along with his/her username and password for the account. I am storing the username and password in the database. I want to be able to store the password in hashed form. Now, since the password is stored in sha1 form, the actual password is unknown and when the user presents his face, the password is automatically filled in by the data stored in the database. If the hashed password gets entered into the password textbox, the password will be flagged as "wrong password" by the website as they expect password to be in plaintext.
Is there any way to store the user passwords? Because storing it in plain-text doesn't seem to a good idea. Anyone with access to the database can see all the passwords for all the users. Although, if I store it in plaintext, the application will work fine since the password will be filled in plaintext automatically!
Also, let me know If there's a way to send the password to the server in hashed form and still get authenticated.