Contents

Insecure.MD5

An implementation of MD5 hashing.

Declaration

struct MD5

Overview

The Insecure.MD5 hash implements the HashFunction protocol to produce an MD5 digest (Insecure.MD5Digest).

You can compute the digest by calling the static hash(data:) method once. Alternatively, if the data that you want to hash is too large to fit in memory, you can compute the digest iteratively by creating a new hash instance, calling the update(data:) method repeatedly with blocks of data, and then calling the finalize() method to get the result.

Topics

Specifying the output type

Reporting the hash length

Computing a hash iteratively

Reporting hash function information

See Also

Hashes