定義和用法
該ketype屬性設置或返回的值keytype一凱基場的屬性。
該keytype屬性指定要使用的密鑰類型。
瀏覽器支持
KeyType屬性在所有主流瀏覽器的支持,除了IE和Safari。
句法
返回KeyType屬性:
keygenObject .keytype
將KeyType屬性:
keygenObject .keytype="rsa|dsa|ec"
屬性值
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 |
技術細節
返回值: | 一個字符串,代表主要的類型使用 |
---|
相關頁面
HTML參考: HTML <keygen>關鍵字類型屬性
