Which element provides a secure way to authenticate the user?
Correct answer
A. <keygen>
12 views
A. <keygen>
12 views
The <keygen> element was introduced in HTML5 to authenticate users securely: on form submission it generated a public/private key pair, kept the private key in the browser and sent the public key to the server.
Be aware that <keygen> has since been deprecated and removed from modern browsers, though it still appears in HTML5 tests.
Practise more Computer Science MCQs with answers and explanations on MCQsExam.com.
Not sure why the answer is A? Ask here and get an explanation.