Created
November 23, 2020 10:17
-
-
Save aplainzetakind/155843dab732f0aeffb5bb0e3b679021 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.Digest.Pure.MD5 | |
import qualified Data.ByteString.Lazy.Char8 as BSL (fromStrict) | |
import qualified Data.Text.Encoding as T | |
import qualified Data.Text as T | |
getHash :: String -> String | |
getHash = T.unpack . T.decodeUtf8 . md5DigestBytes . md5 | |
. BSL.fromStrict . T.encodeUtf8 . T.pack |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment