HTML tag
This tag has been deprecated in the new web standards.
Alternatives include:
Generate keys in JavaScript using the Web Cryptography API
Use a dedicated cryptography library
Example
A form with a keygen field:
Try it »
Browser support

Supported by Firefox, Opera, Chrome, and Safari 6
Tag Definition and Usage Notes
When the form is submitted, the private key is stored locally and the public key is sent to the server.
Differences between HTML 4.01 and HTML5
property
New: new attribute in HTML5.
| property | Value | Description |
|---|---|---|
| autofocusNew | autofocus | Make |
| challengeNew | challenge | If used, sets the keygen value to "ask" on submission. |
| disabledNew | disabled | Disables the |
| formNew | form_id | Defines the |
| keytypeNew | rsa |
dsa
ec | 定义密钥的安全算法。 |
| nameNew | name | Defines the