Keygen Element
It is used to generate key pair. when a form is submitted, a key pair , which contains the private key and public key is generated to secure the content of the form. The private key is encrypted and stored in the key database on local computer. The public key is encrypted and submitted to the server along with the form.
Attributes of keygen element
It is used to generate key pair. when a form is submitted, a key pair , which contains the private key and public key is generated to secure the content of the form. The private key is encrypted and stored in the key database on local computer. The public key is encrypted and submitted to the server along with the form.
Attributes of keygen element
- autofocus- allows the page to get the focus as soon as the page loads.
- challenge- specifies a string that is used for the verification at the time of submission of the form.
- disabled- disables the input control.
- form- refers to the id of the form element.
- keytype- specifies the type of the key to generate.
- name- provides a name to the input control.
example
code in button.html
<!Doctype Html>
<html>
<body>
<h1>Keygen element</h1>
<form action="keygen.html" method="post" enctype="text/plain">
First name: <input type="text" name="fname" /><br/>
Last name: <input type="text name="lname" /><br />
<keygen name="key" challenge="0987654321" keytype="RSA">
<input type="submit" value="submit">
</form>
</body>
</html>
code in keygen.html
<!Doctype Html>
<html>
<body>
<h1>Keygen element</h1>
Redirected
</body>
</html>
0 comments:
Post a Comment