The HTML <keygen> tag is used to define a key-pair generator used in forms. When the form is submitted, the private key is stored in the browser and the public key is sent to the server.
Internet Explorer does not support the keygen tag.
The keygen tag supports the
global and event attributes.
autofocus Defines that this field should automatically get focus when the page loads. Note that this may or may not be good idea to use this attribute depending on the page.
challenge Defines that the keygen value should be challenged when submitted
disabled Defines that the keygen field should be disabled
form Defines one or more form id this field is related to
keytype Defines the security algorithm for the key.
name Defines the name of the field
<form action = "form.aspx" method = "post" >
First Name: <input type = "text" id = "fname" /> <br />
Last Name: <input type = "text" id = "lname" /> <br />
Encryption: <keygen name = "security" challenge = "challenge" keytype = "rsa" />
<input type = "submit" value = "Submit" />