@bicycle-codes/crypto-util
    Preparing search index...

    Function importPublicKey

    • Return a CryptoKey from the given Uint8Array or string.

      Parameters

      • base64Key: string | Uint8Array<ArrayBufferLike>
      • hashAlg: HashAlg = DEFAULT_HASH_ALGORITHM
      • use: KeyUse = KeyUse.Encrypt

      Returns Promise<CryptoKey>