@bicycle-codes/crypto-util
Preparing search index...
sha256
Function sha256
Create a sha-256 hash of the given
Uint8Array
.
Param: bytes
The input bytes
Returns
A
Uint8Array
sha256
(
bytes
:
string
|
Uint8Array
<
ArrayBufferLike
>
,
opts
?:
{
output
:
"string"
}
,
)
:
Promise
<
string
>
Parameters
bytes
:
string
|
Uint8Array
<
ArrayBufferLike
>
Optional
opts
:
{
output
:
"string"
}
Returns
Promise
<
string
>
sha256
(
bytes
:
string
|
Uint8Array
<
ArrayBufferLike
>
,
opts
:
{
output
:
"bytes"
}
,
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Parameters
bytes
:
string
|
Uint8Array
<
ArrayBufferLike
>
opts
:
{
output
:
"bytes"
}
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@bicycle-codes/crypto-util
Loading...
Create a sha-256 hash of the given
Uint8Array
.Param: bytes
The input bytes
Returns
A
Uint8Array