- importPublicKey(
base64Key: string | Uint8Array<ArrayBufferLike>,
hashAlg?: HashAlg,
use?: KeyUse,
): Promise<CryptoKey> Parameters
- base64Key: string | Uint8Array<ArrayBufferLike>
- hashAlg: HashAlg = DEFAULT_HASH_ALGORITHM
- use: KeyUse = KeyUse.Encrypt
Returns Promise<CryptoKey>
Return a CryptoKey from the given Uint8Array or string.