W3Schools.com

HTML5 <keygen> keytype Attribute

HTML5 keygen Tag Reference HTML5 <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 is supported in all major browsers, except Internet Explorer and Safari.


Definition and Usage

The keytype attribute specifies a key type to be used.

The support for key types may wary 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


HTML5 keygen Tag Reference HTML5 <keygen> tag
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE