Returns true when the runtime supports the Web Crypto crypto.subtle API, which is required for most edge crypto operations.
true
crypto.subtle
import { isEdgeCryptoAvailable } from "@aspect/crypto-edge";if (isEdgeCryptoAvailable()) { // Safe to use encrypt(), decrypt(), sign(), etc.} Copy
import { isEdgeCryptoAvailable } from "@aspect/crypto-edge";if (isEdgeCryptoAvailable()) { // Safe to use encrypt(), decrypt(), sign(), etc.}
Returns
truewhen the runtime supports the Web Cryptocrypto.subtleAPI, which is required for most edge crypto operations.