importSpkiBase64OrThrow
importSpkiBase64OrThrow
Import a public key from base64-encoded SubjectPublicKeyInfo (no PEM headers).
ts
function importSpkiBase64OrThrow(
base64: string,
algorithm?: PublicKeyImportInput,
): Promise<CryptoKey>Parameters
base64:stringalgorithm?:PublicKeyImportInput
See also
exportBinaryBase64for the inverse operationimportSpkiPemfor PEM input with headers