SubtleCrypto.generateKey method | globals module | Bun BuildDocsReferenceGuidesBlogDiscord/Globals/SubtleCrypto/generateKeyMgenerateKey BuildDocsReferenceGuidesBlogDiscord /Globals/SubtleCrypto/generateKeyMgenerateKey generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams,extractable: boolean,keyUsages: readonly KeyUsage[]): PromiseCryptoKeyPair>;generateKey(algorithm: Pbkdf2Params | AesKeyGenParams | HmacKeyGenParams,extractable: boolean,keyUsages: readonly KeyUsage[]): PromiseCryptoKey>;generateKey(algorithm: AlgorithmIdentifier,extractable: boolean,keyUsages: KeyUsage[]): PromiseCryptoKeyPair | CryptoKey>;generateKey(algorithm: AlgorithmIdentifier,extractable: boolean,keyUsages: IterableKeyUsage>): PromiseCryptoKeyPair | CryptoKey>;Referenced typesinterface CryptoKeyPairprivateKey: CryptoKeypublicKey: CryptoKeyclass CryptoKey readonly algorithm: KeyAlgorithm readonly extractable: boolean readonly type: KeyType readonly usages: KeyUsage[]
Search the reference...
/
method
SubtleCrypto.generateKeygenerateKey(algorithm: 'Ed25519' | { name: 'Ed25519' },extractable: boolean,keyUsages: readonly 'sign' | 'verify'[]): PromiseCryptoKeyPair>;The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. Available only in secure contexts.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →SubtleCrypto.generateKey method | globals module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for method globals.SubtleCrypto.generateKey | Bun