什么是 HTML 中的 <keygen> 标签?
HTML<keygen>标记用于处理带有证书管理系统的Web表单。该元素生成安全密钥并提交公钥。
keygen标签支持以下附加属性-
价值
描述
autofocus
自动对焦
Specifiesthatwhenthepageloadsthe<keygen>elementautomaticallygetsfocus.
挑战
挑战
SpecifiesthechallengestringtobepackagedwiththepublickeyinthePublicKeyAndChallengeforuseinverificationoftheformsubmission.Ifnochallengestringisprovided,thenitisencodedasanIA5STRINGoflengthzero.残疾
残疾
Specifiesthat<keygen>elementshouldbedisabled形式
form_id
Specifiesoneormoreforms.
键类型
rsa
dsa
ec
Specifiesthesecretalgorithmwhichisforthekey.
名称
萨德萨克
指定名称。示例
您可以尝试运行以下代码以在HTML中实现<keygen>标签-
<!DOCTYPE html>
<html>
<head>
<title>HTML keygen Tag</title>
</head>
<body>
<form>
<keygen name = "random_key" challenge = "0987654321">
<input name = "subject" value = "subject">
</form>
</body>
</html>
作者头像
作者名称
作者性别



评论列表