HTML5 - Introduction
HTML5 - New Elements
HTML5 - Removed Elements
HTML5 - Browser Check
Tag Name : keygen
The keygen tag is used to provide a list of data items to select from. These data items are made available in the form of auto-complete feature. The keygen field - keytype attribute can have 'rsa/dsa/ec' values. The example below uses keytype=rsa.
When the form is submitted, you will see a message "key generation in progress.." for a quick second. After the keys are generated, the private key is stored locally, and the public key is sent over to the server as part of form submission.
HTML Example :
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<form action="keygen_processor.php" method="post">
Username: <input type="text" name="usr_name">
Encryption: <keygen name="security" keytype='rsa'>
<input type="submit">
</form>

</body>
</html>
Output :
Username: Encryption:

© 2010 www.generalconnection.com. All rights reserved. | www.generalconnection.com