X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook