Skip to content

Instantly share code, notes, and snippets.

@harlanhaskins
Created December 12, 2015 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harlanhaskins/c527654e74c98470a478 to your computer and use it in GitHub Desktop.
Save harlanhaskins/c527654e74c98470a478 to your computer and use it in GitHub Desktop.
import qualified Data.ByteString.Lazy.Char8 as L8
import Data.Digest.Pure.MD5 (md5)
md5List l = zip (map (md5 . L8.pack . ("yzbqklnj" ++) . show) l) l
main = print $ filter (\(x,_) -> "00000" == take 5 (show x)) (md5List [0..])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment