FANDOM


definition and usage

The <keygen> tag specifies a key-pair generator field used for forms.

When the form is submitted, the private key is stored locally, and the public key is sent to the server.


Code

<form action="demo_keygen.asp" method="get">

 Username: <input type="text" name="usr_name">
 Encryption: <keygen name="security">
 <input type="submit">

</form>

Result

   Username: Encryption:  

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.