源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>编程字典</title> </head> <body> <form action="demo_keygen.php" method="get"> Username: <input type="text" name="usr_name"> Encryption: <keygen name="security" keytype="rsa"> <input type="submit"> </form> <p><strong>注意:</strong> IE不支持keygen 标签.</p> <p><strong>Note:</strong> keygen 标签的 attribute 属性 Safari 不支持.</p> </body> </html>
运行结果