Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type MD5 = Fingerprint
- showMD5 :: MD5 -> String
- md5 :: ByteString -> MD5
- md5FromInteger :: Integer -> MD5
- binaryPutMD5 :: MD5 -> Put
- binaryGetMD5 :: Get MD5
Documentation
type MD5 = Fingerprint Source #
showMD5 :: MD5 -> String Source #
Show MD5
in human readable form
>>>
showMD5 (Fingerprint 123 456)
"000000000000007b00000000000001c8"
>>>
showMD5 $ md5 $ BS.pack [0..127]
"37eff01866ba3f538421b30b7cbefcac"
@since 3.2.0.0
md5 :: ByteString -> MD5 Source #
@since 3.2.0.0
Helpers
md5FromInteger :: Integer -> MD5 Source #
>>>
showMD5 $ md5FromInteger 0x37eff01866ba3f538421b30b7cbefcac
"37eff01866ba3f538421b30b7cbefcac"
Note: the input is truncated:
>>>
showMD5 $ md5FromInteger 0x1230000037eff01866ba3f538421b30b7cbefcac
"37eff01866ba3f538421b30b7cbefcac"
Yet, negative numbers are not a problem...
>>>
showMD5 $ md5FromInteger (-1)
"ffffffffffffffffffffffffffffffff"
Since: Cabal-3.4.0.0
Binary
binaryPutMD5 :: MD5 -> Put Source #
@since 3.2.0.0
binaryGetMD5 :: Get MD5 Source #
@since 3.2.0.0