Which element in HTML5 provides a secure way to authenticate users?
-
keydata
-
secureKey
-
secureSession
-
keygen
The element in HTML5 generates a public/private key pair for secure user authentication. This allows browsers to create key pairs for certificate-based authentication without requiring plugins.
HTML5's element was designed to generate a public/private key pair on the client, submit the public key to the server (for signing into a client certificate), and keep the private key stored locally — a mechanism for strong client-side authentication. 'keydata', 'secureKey', and 'secureSession' are not real HTML elements; they're invented distractors. Note that has since been deprecated and removed from the HTML5 spec and browsers (superseded by the WebAuthn/Credential Management APIs), but historically it was the HTML5 element associated with key-pair-based authentication, which is what this question is testing.