[Haskell-cafe] haskell crypto is reaaaaaaaaaally slow
Anatoly Yakovenko
aeyakovenko at gmail.com
Tue Jun 19 23:26:51 EDT 2007
> > module Main where
> >
> > import System
> > import qualified Data.Digest.MD5 as MD5
> > import qualified Data.ByteString as BS
> >
> > main = do
> > args <- getArgs
> > dt <- BS.readFile $ head args
> > putStrLn $ show $ MD5.hash . BS.unpack $ dt
> ^^^^ ^^^^^^^^^
>
> not a good idea.
>
> You need an MD5 over bytestrings, not [Word8].
Where do I get one?
More information about the Haskell-Cafe
mailing list