Is it possible to create a image based authentication system using the images encoded base64 ? in php or java…i jus want to know is it possible ?..and if it is possible can i get a briefing how should i do it ?? m really looking forward to do it .
data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAA......
<img width="110" height="58" title="" alt="" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAAEAYABgAAD//gAfTEVBRCBUZWNobm9s.......>
I would recommend to you that instead instruct the user to upload the image to authenticate him in the system, do the following.
Allow the user on the client side to select an image ,but instead of uploading the image and sending the image to the server , just calculate a hash(checksum) of the image in the client side, and send this hash(checksum) to the server. You can check if the file the user select is identical to the one you have in the server by calculating the hash(checksum) on both files and if the hashes match, then you are sure than the user selected the right image.
Also i would suggest you to do something, else. There is the possibility that a sniffer(man-in-the-middle) can get the hash sent by the client and use it to authenticate it self. I would like to put some salt on the hash before sending it in order to get a cyphered string representation of the file hash before sending it.