This library allows you to compute MD5 message digests in Elm. It exposes a single function that takes any string and outputs a "fingerprint" containing 32 hexadecimal characters. More information about the MD5 algorithm can be found here.
Given a string of arbitrary length, returns a list of integers representing the hash as a series of individual bytes.
bytes "hello world"
--> [ 0x5e , 0xb6 , 0x3b , 0xbb
--> , 0xe0 , 0x1e , 0xee , 0xd0
--> , 0x93 , 0xcb , 0x22 , 0xbb
--> , 0x8f , 0x5a , 0xcd , 0xc3
--> ]Alias for bytes, for compatibility reasons.
hexInOctets "hello world" == bytes "hello world"
Given a string of arbitrary length, returns a string of 32 hexadecimal characters (a-f, 0-9) representing the 128-bit MD5 message digest.