Il tag HTML keygen



Descrizione

Il tag HTML <keygen> serve per gestire i form con sistema di certificati. L' elemento genera una key e invia la chiave pubblica.

Esempio

<!DOCTYPE html>
<html>
<head>
<title>HTML keygen Tag</title>
</head>
<body>
<form>
<keygen name="random_key" challenge="0987654321">
<input name="firstname" value="first name">
</form>
</body>
</html>

Produrrà il seguente risultato:

Attributi Globali

Questo tag supporta tutti gli attributi globali descritti in - HTML - Referenze Attributi

Attributi Specifici

Il tag HTML <keygen> supporta anche i seguenti attributi aggiuntivi:

AttributoValoreDescrizione
autofocus html-5autofocusIndica che al caricamento della pagina l' elemento <keygen> avrà automaticamente il focus.
challengehtml-5challengeIndica la stringa da impacchettare con la chiave pubblica nel PublicKeyAndChallenge per verificare l'invio del form. Se non è una stringa, allora sarà codificato come IA5STRING di lunghezza zero.
disabled html-5disabledDisabilito l' elemento <keygen>.
form html-5form_idDefinisce uno o piè form
keytype html-5rsa
dsa
ec
Indica l' algoritmo segreto usato per la chiave.
name html-5autofocusDefinisce un nome.

Attributi Evento

Questo tag supporta tutti gli attributi evento descritti in - HTML - Referenze Eventi

Compatibilità Browser

ChromeFirefoxIEOperaSafariAndroid
SiSiNoSiSiSi
html_tags_reference.htm
Advertisements