Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Experimental WebAPI
GitHub

WebCryptoAPI

Types

algorithm

typealgorithm= {mutablename:string}

Record fields

name
string

algorithmIdentifier

typealgorithmIdentifier=WebAPI.Prelude.any

crypto

Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.See Crypto on MDN

typecrypto= {subtle:subtleCrypto}

Record fields

Module

There are methods and helpers defined in Crypto.

cryptoKey

The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.See CryptoKey on MDN

typecryptoKey= {
type_:keyType,
extractable:bool,
algorithm:keyAlgorithm,
usages:array<keyUsage>,
}

Record fields

extractable
bool

keyAlgorithm

typekeyAlgorithm= {mutablename:string}

Record fields

name
string

keyFormat

typekeyFormat=
| @as("jwk")Jwk
| @as("pkcs8")Pkcs8
| @as("raw")Raw
| @as("spki")Spki

keyType

typekeyType=
| @as("private")Private
| @as("public")Public
| @as("secret")Secret

keyUsage

typekeyUsage=
| @as("decrypt")Decrypt
| @as("deriveBits")DeriveBits
| @as("deriveKey")DeriveKey
| @as("encrypt")Encrypt
| @as("sign")Sign
| @as("unwrapKey")UnwrapKey
| @as("verify")Verify
| @as("wrapKey")WrapKey

subtleCrypto

This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).See SubtleCrypto on MDN

typesubtleCrypto= {}

Module

There are methods and helpers defined in SubtleCrypto.


[8]ページ先頭

©2009-2025 Movatter.jp