MissingH-1.4.3.1: Large utility library
CopyrightCopyright (C) 2001 Ian Lynagh
LicenseBSD-3-Clause OR GPL-2.0-or-later
MaintainerIan Lynagh <igloo@earth.li>
Stabilitystable
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Data.Hash.MD5

Description

Generation of MD5sums

Written by Ian Lynagh, igloo@earth.li

Synopsis

Documentation

md5 :: MD5 a => a -> ABCD Source #

The simplest function, gives you the MD5 of a string as 4-tuple of 32bit words.

md5s :: MD5 a => a -> String Source #

Returns a hex number ala the md5sum program.

md5i :: MD5 a => a -> Integer Source #

Returns an integer equivalent to hex number from md5s.

class MD5 a where Source #

Anything we want to work out the MD5 of must be an instance of class MD5

Methods

get_next :: a -> ([Word32], Int, a) Source #

len_pad :: Zord64 -> a -> a Source #

finished :: a -> Bool Source #

Instances

Instances details
MD5 BoolList Source # 
Instance details

Defined in Data.Hash.MD5

MD5 Str Source # 
Instance details

Defined in Data.Hash.MD5

MD5 WordList Source # 
Instance details

Defined in Data.Hash.MD5

newtype ABCD Source #

Constructors

ABCD (Word32, Word32, Word32, Word32) 

Instances

Instances details
Num ABCD Source #

WARNING: This instance only defines the + operation

Instance details

Defined in Data.Hash.MD5

Methods

(+) :: ABCD -> ABCD -> ABCD #

(-) :: ABCD -> ABCD -> ABCD #

(*) :: ABCD -> ABCD -> ABCD #

negate :: ABCD -> ABCD #

abs :: ABCD -> ABCD #

signum :: ABCD -> ABCD #

fromInteger :: Integer -> ABCD #

Show ABCD Source # 
Instance details

Defined in Data.Hash.MD5

Methods

showsPrec :: Int -> ABCD -> ShowS #

show :: ABCD -> String #

showList :: [ABCD] -> ShowS #

Eq ABCD Source # 
Instance details

Defined in Data.Hash.MD5

Methods

(==) :: ABCD -> ABCD -> Bool #

(/=) :: ABCD -> ABCD -> Bool #

type Zord64 = Word64 Source #

Synonym for Word64 due to historic reasons

newtype Str Source #

Constructors

Str String 

Instances

Instances details
MD5 Str Source # 
Instance details

Defined in Data.Hash.MD5

newtype BoolList Source #

Constructors

BoolList [Bool] 

Instances

Instances details
MD5 BoolList Source # 
Instance details

Defined in Data.Hash.MD5

newtype WordList Source #

Constructors

WordList ([Word32], Zord64) 

Instances

Instances details
MD5 WordList Source # 
Instance details

Defined in Data.Hash.MD5