handa-gdata-0.6.2: Library and command-line utility for accessing Google services and APIs.

Safe HaskellNone

Crypto.MD5

Contents

Description

Miscellaneous functions for MD5 checksums.

Synopsis

Types

type MD5Info = (MD5String, MD5Base64)Source

MD5 checksum information.

type MD5String = StringSource

An MD5 checksum represented as a character string.

type MD5Base64 = StringSource

An MD5 checksum represented in base 64 encoding.

data MD5Digest

After finalizing a context, using md5Finalize, a new type is returned to prevent 're-finalizing' the structure.

Functions

md5 :: ByteString -> MD5Digest

Processes a lazy ByteString and returns the md5 digest. This is probably what you want.

md5Base64Source

Arguments

:: ByteString

The data.

-> MD5Info

The MD5 sum.

Compute an MD5 checksum.

md5ToBase64Source

Arguments

:: MD5Digest

The MD5 digest.

-> MD5Base64

The MD5 checksum in base 64 encoding.

Convert an MD5 digest into a base-64-encoded string.

md5Empty :: MD5InfoSource

The MD5 info for an empty string.