THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML <keygen> keytype Attribute

HTML keygen Tag Reference HTML <keygen> tag

Example

Generate the key with an RSA alogrithm:

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

Try it yourself »

Definition and Usage

The keytype attribute specifies a key type to be used.

Note: The support for key types may vary between browsers.


Browser Support

The numbers in the table specify the first browser version that fully supports the attribute.

Attribute
keytype Yes Not supported Yes Not supported Yes

Differences Between HTML 4.01 and HTML5

The <keygen> tag is new in HTML5.


Syntax

<keygen keytype="rsa|dsa|ec">

Attribute Values

Value Description
rsa Default. Specifies an RSA security algorithm. The user may be given a choice of RSA key strengths
dsa Specifies a DSA security algorithm. The user may be given a choice of DSA key sizes
ec Specifies an EC security algorithm. The user may be given a choice of EC key strengths

HTML keygen Tag Reference HTML <keygen> tag

COLOR PICKER

colorpicker

SHARE THIS PAGE






Search w3schools.com:

Translate w3schools.com: