string
, Uint8Array
, or ArrayBuffer
to hash. Uint8Array
or ArrayBuffer
will be faster
Optional
hashInto: Uint8Arrayoptional Uint8Array
to write the hash to. 32 bytes minimum.
This hashing function balances speed with cryptographic strength. This does not encrypt or decrypt data.
The implementation uses BoringSSL (used in Chromium & Go)
The equivalent openssl
command is:
# You will need OpenSSL 3 or later
openssl sha512-256 /path/to/file
Hash input
using SHA-2 512/256
string
, Uint8Array
, or ArrayBuffer
to hash. Uint8Array
or ArrayBuffer
will be faster
DigestEncoding
to return the hash in
This hashing function balances speed with cryptographic strength. This does not encrypt or decrypt data.
The implementation uses BoringSSL (used in Chromium & Go)
The equivalent openssl
command is:
# You will need OpenSSL 3 or later
openssl sha512-256 /path/to/file
Hash input
using SHA-2 512/256
string
, Uint8Array
, or ArrayBuffer
to hash. Uint8Array
or ArrayBuffer
will be faster
Optional
hashInto: Uint8Arrayoptional Uint8Array
to write the hash to. 32 bytes minimum.
This hashing function balances speed with cryptographic strength. This does not encrypt or decrypt data.
The implementation uses BoringSSL (used in Chromium & Go)
The equivalent openssl
command is:
# You will need OpenSSL 3 or later
openssl sha512-256 /path/to/file
Hash input
using SHA-2 512/256
string
, Uint8Array
, or ArrayBuffer
to hash. Uint8Array
or ArrayBuffer
will be faster
DigestEncoding
to return the hash in
This hashing function balances speed with cryptographic strength. This does not encrypt or decrypt data.
The implementation uses BoringSSL (used in Chromium & Go)
The equivalent openssl
command is:
# You will need OpenSSL 3 or later
openssl sha512-256 /path/to/file
Generated using TypeDoc
Hash
input
using SHA-2 512/256