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: