X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET 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 »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The keytype attribute for the <keygen> tag is supported in Firefox, Opera, and Chrome.


Definition and Usage

The keytype attribute specifies a key type to be used.

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


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 FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook