importPkcs8Base64OrThrow
importPkcs8Base64OrThrow
Import a private key from base64-encoded PKCS#8 PrivateKeyInfo (no PEM headers).
ts
function importPkcs8Base64OrThrow(
base64: string,
algorithm?: PrivateKeyImportInput,
): Promise<CryptoKey>Parameters
base64:stringalgorithm?:PrivateKeyImportInput
See also
exportBinaryBase64for the inverse operationimportPkcs8Pemfor PEM input with headers