@bicycle-codes/crypto-util
Preparing search index...
rsa
importPublicKey
Function importPublicKey
importPublicKey
(
base64Key
:
string
|
Uint8Array
<
ArrayBufferLike
>
,
hashAlg
?:
HashAlg
,
use
?:
KeyUse
,
)
:
Promise
<
CryptoKey
>
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
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@bicycle-codes/crypto-util
Loading...
Return a CryptoKey from the given Uint8Array or string.