You are here: Reference > HTML > attributes > keyType (keygen)

keyType attribute (keygen)

Browser support:
Sets the type of encryption used by the keygen element.

Possible values:

String that sets the type of encryption.
One of the following values:
DSA
Digital Signature Algorithm.
RSA
Algorithm for public-key encryption.
Default: RSA.

Example HTML code 1:

This example illustrates the use of the keyType attribute:
<form method="post" action="#URL#" enctype="application/x-www-form-urlencoded">
    <keygen name="key" keytype="DSA">
    <input type="text" name="textToEncrypt" value="Some Text" />
    <br />
    <input type="submit" value="Send" />
</form>
Did you find this example helpful? yes no

Supported by tags:

External links:

User Contributed Comments

Post Content

Post Content