open System.Security.Cryptography open System.Text let md5 (data : byte array) : string = use md5 = MD5.Create() (StringBuilder(), md5.ComputeHash(data)) ||> Array.fold (fun sb b -> sb.Append(b.ToString("x2"))) |> string let hash = md5 "hello world"B;