@bicycle-codes/session-cookie
Preparing search index...
sign
Function sign
sign
(
data
:
string
|
Uint8Array
<
ArrayBufferLike
>
,
key
:
string
,
opts
?:
Partial
<
{
algorithm
:
"sha-256"
|
"sha-512"
}
>
,
)
:
Promise
<
string
>
Sign the given data and return the signature as a string.
Parameters
data
:
string
|
Uint8Array
<
ArrayBufferLike
>
key
:
string
Optional
opts
:
Partial
<
{
algorithm
:
"sha-256"
|
"sha-512"
}
>
Returns
Promise
<
string
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@bicycle-codes/session-cookie
Loading...
Sign the given data and return the signature as a string.