Hosting Solutions
mobile_logo Table of Contents


The <keygen> element is used with a <form> tag to generate an encryption key pair. When the form processes <keygen> will generate a public and private encrypted key. The public key is stored on the server, while the private key is stored locally. The browser software may render a control that allows the user to choose the encryption level.

Code Example

<form id="myform" action="parser.php" method="post"> Encryption Level: <keygen name="grade" keytype="rsa" form="myform"> </form>


globals - the global attributes common to all elements possible values: see global attribute list challenge - specify a challenge to be packed with the submitted key possible values: "string" keytype - specify the type of key to generate possible values: "rsa"



aabbraddressareaasidearticleaudiobbasebdobdiblockquotebodybrbuttoncanvascaptioncitecodecolcolgroupdatadatalistdddeldetailsdfndialogdivdldtemembedfieldsetfigcaptionfigurefooterformh1 h2 h3 h4 h5 h6headheaderhrhtmliiframeimginputinskbdkeygenlabellegendlilinkmainmapmarkmetameternavnoscriptobjectoloptgroupoptionoutputpparampreprogressqrb rp rt rtc rubyssampscriptsectionselectsmallsourcespanstrongstylesub supsummarytabletbodytdtemplatetextareatfootththeadtimetitletrtrackuulvarvideowbr