Next Previous Contents

3. Checksum Module

This module provides a various routines for computing checksums. require("chksum") to load it.

3.1 md5sum

Synopsis

Compute an MD5 sum for a string

Usage

String_Type md5sum (BString_Type bstr)

Description

The md5sum function computes the MD5 checksum for the specified binary string. The function returns a string representing the hexadecimal representation of the checksum.

See Also

md5sum_file, sha1sum

3.2 md5sum_file

Synopsis

Compute the MD5 sum for the contents of a file

Usage

String_Type md5sum_file (String_Type|File_Type f)

Description

The md5sum_file computes the MD5 sum on the contents of a file. The file may either be specified as a string giving the name of the file, or as an open stdio File_Type pointer. The function returns a string representing the hexadecimal representation of the checksum.

See Also

md5sum, sha1sum_file, sha1sum

3.3 sha1sum

Synopsis

Compute the SHA1 sum for a string

Usage

String_Type sha1sum (BString_Type bstr)

Description

The sha1sum function computes the SHA1 checksum for the specified binary string. The function returns a string representing the hexadecimal representation of the checksum.

See Also

sha1sum_file, md5sum

3.4 sha1sum_file

Synopsis

Compute the SHA1 sum for the contents of a file

Usage

String_Type sha1sum_file (String_Type|File_Type f)

Description

The sha1sum_file computes the SHA1 sum on the contents of a file. The file may either be specified as a string giving the name of the file, or as an open stdio File_Type pointer. The function returns a string representing the hexadecimal representation of the checksum.

See Also

sha1sum, md5sum_file, md5sum


Next Previous Contents