Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
9
Task/MD5/F-Sharp/md5.fs
Normal file
9
Task/MD5/F-Sharp/md5.fs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
let md5ootb (msg: string) =
|
||||
use md5 = System.Security.Cryptography.MD5.Create()
|
||||
msg
|
||||
|> System.Text.Encoding.ASCII.GetBytes
|
||||
|> md5.ComputeHash
|
||||
|> Seq.map (fun c -> c.ToString("X2"))
|
||||
|> Seq.reduce ( + )
|
||||
|
||||
md5ootb @"The quick brown fox jumped over the lazy dog's back"
|
||||
Loading…
Add table
Add a link
Reference in a new issue