NAME
std/digest/crc32 - CRC32 digests for BinaryString values.
SYNOPSIS
from std/digest/crc32 import *;
let payload := to_binary( "hello" );
let raw := crc32(payload);
let hex := crc32_hex(payload);
let b64 := crc32_b64(payload);
IMPLEMENTATION SUPPORT
This module is supported by all implementations of ZuzuScript.
DESCRIPTION
This module provides CRC32 digest helpers implemented in pure ZuzuScript.
EXPORTS
Functions
crc32(BinaryString value)Parameters:
valueis binary input data. Returns:BinaryString. Returns the raw 4-byte CRC32 digest.crc32_hex(BinaryString value)Parameters:
valueis binary input data. Returns:String. Returns the digest as lowercase hexadecimal text.crc32_b64(BinaryString value)Parameters:
valueis binary input data. Returns:String. Returns the digest as Base64 text without trailing=padding.
COPYRIGHT AND LICENCE
std/digest/crc32 is copyright Toby Inkster.
It is free software; you may redistribute it and/or modify it under the terms of either the Artistic License 1.0 or the GNU General Public License version 2.