Closed k-bx closed 9 years ago
@vincenthz ping, please merge!
cryptonite ( on hackage ) should solve all your problem. I don't think cryptohash should change now
Ok, thanks!
Sorry I still don't see how toHex
is exposed in cryptonite
. Should I depend on base16-bytestring
? I am just trying to convert the following from cryptohash
to cryptonite
:
md5 :: Text -> Text
md5 = Text.decodeUtf8 . digestToHexByteString . (Crypto.hash :: ByteString -> Digest MD5) . Text.encodeUtf8
https://github.com/bartavelle/language-puppet/blob/master/Puppet/Puppetlabs.hs#L24-L25
Thanks for your help.
Hi!
I'm currently struggling with doing something like:
with current set of public API of hs-cryptohash, since
toHex
is not exposed currently.Thanks!