as

Settings
Sign out
Notifications
Alexa
Amazonアプリストア
AWS
ドキュメント
Support
Contact Us
My Cases
開発
設計と開発
公開
リファレンス
サポート
アクセスいただきありがとうございます。こちらのページは現在英語のみのご用意となっております。順次日本語化を進めてまいりますので、ご理解のほどよろしくお願いいたします。

CryptoKey

The CryptoKey interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods generateKey() or importKey().

Accessors

algorithm

Get Signature

get algorithm(): RsaHashedKeyGenParams | EcKeyGenParams | HmacKeyGenParams | AesKeyGenParams

An object describing the algorithm for which this key can be used and any associated extra parameters. The object returned depends of the algorithm used to generate the key.

Returns

RsaHashedKeyGenParams | EcKeyGenParams | HmacKeyGenParams | AesKeyGenParams

An object matching:


extractable

Get Signature

get extractable(): boolean

A boolean value indicating whether or not the key may be extracted using SubtleCrypto.exportKey().

Returns

boolean


type

Get Signature

get type(): string

The type of key the object represents. It may take one of the following values: "secret", "private" or "public".

Returns

string


usages

Get Signature

get usages(): string[]

An Array of strings, indicating what can be done with the key. Possible values for array elements are "encrypt", "decrypt", "sign", "verify", "deriveKey", "deriveBits", "wrapKey", and "unwrapKey".

Returns

string[]


Last updated: Oct 02, 2025