subtle.encapsulateKey(encapsulationAlgorithm, encapsulationKey, sharedKeyAlgorithm, extractable, usages)
稳定性: 1.1 - 积极开发
¥Stability: 1.1 - Active development
-
encapsulationAlgorithm
<string> -
encapsulationKey
<CryptoKey> -
sharedKeyAlgorithm
<string> | <HmacImportParams> -
extractable
<boolean> -
usages
<string[]> 参见 关键用法。¥
usages
<string[]> See Key usages. -
返回:<Promise> 成功时将使用 EncapsulatedKey 履行。
¥Returns: <Promise> Fulfills with EncapsulatedKey upon success.
使用消息接收者的非对称公钥加密临时对称密钥。此加密密钥是 "封装密钥",表示为 EncapsulatedKey。
¥Uses a message recipient's asymmetric public key to encrypt a temporary symmetric key. This encrypted key is the "encapsulated key" represented as EncapsulatedKey.
目前支持的算法包括:
¥The algorithms currently supported include: