Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.
class Crypto | globals module | Bun BuildDocsReferenceGuidesBlogDiscord/Globals/CryptoMgetRandomValuesMrandomUUIDPsubtlePtimingSafeEqual BuildDocsReferenceGuidesBlogDiscord /Globals/CryptoMgetRandomValuesMrandomUUIDPsubtlePtimingSafeEqual readonly subtle: SubtleCrypto timingSafeEqual: (a: ArrayBufferView, b: ArrayBufferView) => booleangetRandomValuesT extends null | ArrayBufferViewArrayBufferLike>>(array: T): T; randomUUID(): `${string}-${string}-${string}-${string}-${string}`;
Search the reference...
/
class
Cryptoclass CryptoAvailable 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 →class Crypto | globals module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.
[MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)