Skip to content

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

See also

Released under the MIT License.