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.
<form id="myform" action="parser.php" method="post"> Encryption Level: <keygen name="grade" keytype="rsa" form="myform"> </form>