+ 12

What is the keygen tag used for?

I'm learning, but not fully understanding what <keygen> 's purpose is. Is it to secure something? Please help. Thanks!

22nd Jun 2019, 7:31 PM
Green Ghost
Green Ghost - avatar
6 Antworten
+ 8
Keygen is a tag that isn't used anymore. Keygen is a tag used in forms. For example: <form action="/action_page.php" method="get"> Username: <input type="text" name="usr_name"> Encryption: <keygen name="security"> <input type="submit"> </form> https://www.w3schools.com/TAGS/att_keygen_name.asp
22nd Jun 2019, 7:37 PM
ᗰᗩᔕ丅ᗴᖇ
ᗰᗩᔕ丅ᗴᖇ - avatar
+ 13
Thanks ᗰᗩᔕ丅ᗴᖇ! So basically a KEY- GENerator by what your saying?
22nd Jun 2019, 7:42 PM
Green Ghost
Green Ghost - avatar
+ 9
Its used to be used in forms, but isn't in HTML 5 anymore. Probably why you don't see it in the lessons.
22nd Jun 2019, 7:54 PM
HTML Master
HTML Master - avatar
+ 6
What is keygen anyway?
22nd Jun 2019, 7:35 PM
Coding Person
Coding Person - avatar
+ 3
Practically, yes. The alternative for it is JavaScript.
22nd Jun 2019, 7:46 PM
ᗰᗩᔕ丅ᗴᖇ
ᗰᗩᔕ丅ᗴᖇ - avatar
+ 2
The <keygen> tag in HTML isused to specify a key-pair generator field in a form. The purpose of <keygen> element is to provide a secure way to authenticate users. When a from is submitted then two keys are generated, private key and public key. The private key stored locally, and the public key is sent to the server.
23rd Jun 2019, 3:50 PM
Shabista Imam
Shabista Imam - avatar