Binary Functions
crc32
Computes the CRC-32 of binary. For general purpose hashing, use xxhash64(), as it is much faster and produces a better quality hash.
Supported Signatures
from_base32
Decodes binary data from the base32 encoded string.
Supported Signatures
from_base64
Decodes binary data from the base64 encoded string.
Supported Signatures
from_base64url
Decodes binary data from the base64 encoded string using the URL safe alphabet.
Supported Signatures
from_big_endian_32
Decodes the 32-bit two’s complement big-endian binary. The input must be exactly 4 bytes.
Supported Signatures
from_big_endian_64
Decodes the 64-bit two’s complement big-endian binary. The input must be exactly 8 bytes.
Supported Signatures
from_hex
Decodes binary data from the hex encoded string.
Supported Signatures
from_ieee754_32
Decodes the 32-bit big-endian binary in IEEE 754 single-precision floating-point format. The input must be exactly 4 bytes.
Supported Signatures
from_ieee754_64
Decodes the 64-bit big-endian binary in IEEE 754 double-precision floating-point format. The input must be exactly 8 bytes.
Supported Signatures
hmac_md5
Computes HMAC with MD5 of binary with the given key.
Supported Signatures
hmac_sha1
Computes HMAC with SHA1 of binary with the given key.
Supported Signatures
hmac_sha256
Computes HMAC with SHA256 of binary with the given key.
Supported Signatures
hmac_sha512
Computes HMAC with SHA512 of binary with the given key.
Supported Signatures
md5
Computes the MD5 hash of binary.
Supported Signatures
murmur3
Computes the 128-bit MurmurHash3 hash of binary.
Supported Signatures
sha1
Computes the SHA1 hash of binary.
Supported Signatures
sha256
Computes the SHA256 hash of binary.
Examples:
Supported Signatures
sha512
Computes the SHA512 hash of binary.
Examples:
Supported Signatures
spooky_hash_v2_32
Computes the 32-bit SpookyHashV2 hash of binary.
Supported Signatures
spooky_hash_v2_64
Computes the 64-bit SpookyHashV2 hash of binary.
Supported Signatures
to_base32
Encodes binary into a base32 string representation.
Supported Signatures
to_base64
Encodes binary into a base64 string representation.
Supported Signatures
to_base64url
Encodes binary into a base64 string representation using the URL safe alphabet.
Supported Signatures
to_big_endian_32
Encodes integer into a 32-bit two’s complement big-endian format.
Supported Signatures
to_big_endian_64
Encodes bigint into a 64-bit two’s complement big-endian format.
Supported Signatures
to_hex
Encodes binary into a hex string representation.
Examples:
Supported Signatures
to_ieee754_32
Encodes real into a 32-bit big-endian binary according to IEEE 754 single-precision floating-point format.
Supported Signatures
to_ieee754_64
Encodes double into a 64-bit big-endian binary according to IEEE 754 double-precision floating-point format.
Supported Signatures
xxhash64
Computes the xxHash64 hash of binary.
Supported Signatures