You are here : htmlHTML 5keygen

<keygen> - HTML 5

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.


Syntax

    <form action="demo_keygen.asp" method="get">	 	Username: <input type="text" name="usr_name">	 	Encryption: <keygen name="security">	 	<input type="submit">


Example

    <form action="demo_keygen.asp" method="get">	 	Username: <input type="text" name="usr_name">	 	Encryption: <keygen name="security">	 	<input type="submit">


Output / Return Value


Limitations


Alternatives / See Also


Reference