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

Safe HaskellNone
LanguageHaskell98

Crypto.MD5

Contents

Description

Miscellaneous functions for MD5 checksums.

Synopsis

Types

type MD5Info = (MD5String, MD5Base64) Source

MD5 checksum information.

type MD5String = String Source

An MD5 checksum represented as a character string.

type MD5Base64 = String Source

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.

md5Base64 Source

Arguments

:: ByteString

The data.

-> MD5Info

The MD5 sum.

Compute an MD5 checksum.

md5ToBase64 Source

Arguments

:: MD5Digest

The MD5 digest.

-> MD5Base64

The MD5 checksum in base 64 encoding.

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

md5Empty :: MD5Info Source

The MD5 info for an empty string.