nano-md5-0.1.1: Efficient, ByteString bindings to OpenSSL.Source codeContentsIndex
Data.Digest.OpenSSL.MD5
PortabilityRequires FFI
Stabilityprovisional
MaintainerDon Stewart <dons@galois.com>
Description
Synopsis
md5sum :: ByteString -> String
c_md5 :: Ptr CChar -> CULong -> Ptr CChar -> IO (Ptr Word8)
Documentation
md5sum :: ByteString -> StringSource

Fast md5 using OpenSSL. The md5 hash should be referentially transparent.. The ByteString is guaranteed not to be copied.

The result string should be identical to the output of MD5(1). That is:

 $ md5 /usr/share/dict/words 
 MD5 (/usr/share/dict/words) = e5c152147e93b81424c13772330e74b3

While this md5sum binding will return:

c_md5 :: Ptr CChar -> CULong -> Ptr CChar -> IO (Ptr Word8)Source
Produced by Haddock version 2.4.2