-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Apache server specific MD5 digest algorighm.
--
-- Haskell implementation of Apache HTTP server specific MD5 digest
-- algorithm that uses OpenSSL MD5() function.
@package apache-md5
@version 0.5.0.0
-- | ApacheMD5 is one of the hash algorithms used by Apache HTTP server for
-- basic authentication. It is Apache specific, but e.g. nginx supports
-- this algorithm since version 1.0.3
-- http://wiki.nginx.org/HttpAuthBasicModule#auth_basic_user_file.
--
-- This is a naive implementation that doesn't aim for high speed, but to
-- be reasonably fast it uses MD5() function from OpenSSL
-- library so during compilation you'll nead to have it installed
-- including header files. Many Linux distributions have separate dev
-- packages for this.
module Data.Digest.ApacheMD5
-- | Taking password and salt this function produces resulting ApacheMD5
-- hash which is already base 64 encoded.
apacheMD5 :: ByteString -> ByteString -> ByteString
-- | Raw Apache MD5 implementation that is parametrized by MD5
-- implementation and doesn't encode result in to base 64.
apacheMD5' :: (ByteString -> ByteString) -> ByteString -> ByteString -> ByteString
-- | Alphabet used by encode64.
alpha64 :: ByteString
encode64 :: ByteString -> ByteString
md5DigestLength :: Int