articles

Home / DeveloperSection / Articles / Keygen Element in HTML 5

Keygen Element in HTML 5

Anonymous User10067 24-Jul-2011

HTML 5 offers a new input element <keygen>,this element is used to safely authenticate users,<keygen> element creates a pair of private, public keys which is stored on the client machine and sends the public key to the server. This provides safe authentication of users.

Currently, the browser support for this element is not good to be a useful security standard.

<head>
<title>Keygen Element</title>
</head>
    <form action="Default.aspx" method="get">
    <table width="300">
        <tr>
            <td>
                User ID:
            </td>
            <td>
                <input type="text" name="usr_ID" />
            </td>
        </tr>
        <tr>
            <td>
                User Password:
            </td>
            <td>
                <input type="password" name="usr_Pass" />
            </td>
        </tr>
        <tr>
            <td>
                Encryption:
            </td>
            <td>
                <keygen name="security" /> <!--using keygen element for user authentication-->
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <input type="submit" value="Submit" />
            </td>
        </tr>
    </table>
    </form>

If user wants to use a client certificate then he has to enter master password in textbox as shown below:

Keygen Element in HTML 5

 

Browser Support

Attribute

Firefox

IE

Opera

Chrome

Safari

keygen

No

No

10.5

3.0

No

 


Updated 26-Feb-2020
I am a content writter !

Leave Comment

Comments

Liked By