Get the type of key used:
The result of x will be:
The ketype property sets or returns the value of the keytype attribute of a keygen field.
The keytype attribute specifies a key type to be used.
The keytype property is supported in all major browsers, except Internet Explorer and Safari.
Return the keytype property:
Set the keytype property:
Value | Description |
---|---|
rsa | Default. Specifies an RSA security algorithm. The user may be given a choice of RSA key strengths |
dsa | Specifies a DSA security algorithm. The user may be given a choice of DSA key sizes |
ec | Specifies an EC security algorithm. The user may be given a choice of EC key strengths |
Return Value: | A String, representing the type of key used |
---|
HTML reference: HTML <keygen> keytype attribute