HTM5 new table cell keygen label usage and properties introduced, this article mainly introduces HTML5 keygen label definition usage and its properties description, as well as the advantages and disadvantages of HTML5 keygen label
HTML5 definition and usage of keygen tags:
The <keygen> tag specifies the key pair generator field used for the form.
When the form is submitted, the private key is stored locally and the public key is sent to the server.
HTML5 <keygen> Tag Examples:
A form with a keygen field:
<form action= "demo_keygen.asp" method= "Get" >username: <input type= "text" name= "Usr_name"/>Encryption: <keygen name= "Security"/><input type= "Submit"/></form>
HTML5 properties of the keygen tag:
HTML5 keygen label advantages and disadvantages of the introduction:
First the <keygen> tag generates a public and private key, the private key is stored locally on the user, and the public key is sent to the server. So what is the use of the public/private key generated by the <keygen> tag? Many friends should think of asymmetric encryption when they see the public/private key. That's right.,<keygen> tags play a role here as well.
The <keygen> tag expects the server to generate a client Certificate after receiving SPKAC (Signedpublickeyandchallenge), Then return to the browser to let the user go to download and save to Local. After that, the user authenticates by using the locally stored private key and certificate after the Tls/ssl Secure transport protocol to the server.
The following are the advantages of using <keygen> Tags:
One is to improve the security of verification;
At the same time, if it is used as a client certificate, it can improve the defense against MITM attack.
Keygen tags are implemented across browsers and are very easy to implement.
In addition, you can not consider the operating system administrator permissions issues. For example, the operating system sets different browser permissions for different users, ie or other browsers can disable the generation of keys within the settings, in which case the keygen tag can be used to generate and use client certificates without errors.
There are also a number of deficiencies in the <keygen> label: (e.g. 10 below)
Certificates (certificates) are not easily accessible in different systems (but for some systems, this is an advantage).
The private key is not stored in a standard location.
Seeing <keygen> tag generation on HTML pages is always confusing and difficult to understand.
The <keygen> tag lets the user select the appropriate key from a list, but most users do not know how to choose it.
Many users are not sure whether to download the certificate (Certificate) as prompted.
<keygen> tags do not provide a mechanism to manage certificates to invalidate them.
There is no standard key length or hash to achieve browser independence.
Algorithms are not supported (RSA, DSA, ECC, etc.).
The size selection of a key can only be derived from the form content generated by the <keygen> tag, not the user's choice.
Signatures can only be based on MD5, not other cryptographic algorithms.
Browser support
All major browsers support <keygen> tags, in addition to Internet Explorer and Safari.
"Recommended"
The specific use of HTML tags legend you know what? Legend tags properties and how to use them
What is the HTML map tag? HTML map tag structure and how to use the detailed method