mirror of
https://github.com/LCPQ/quantum_package
synced 2024-12-22 20:35:19 +01:00
Forgot To_md5.ml in previous commits
This commit is contained in:
parent
adadc45efa
commit
dc9864e54f
11
ocaml/To_md5.ml
Normal file
11
ocaml/To_md5.ml
Normal file
@ -0,0 +1,11 @@
|
||||
open Core.Std;;
|
||||
open Qptypes;;
|
||||
|
||||
let to_md5 sexp_of_t t =
|
||||
sexp_of_t t
|
||||
|> Sexp.to_string
|
||||
|> Cryptokit.hash_string (Cryptokit.Hash.md5 ())
|
||||
|> Cryptokit.transform_string (Cryptokit.Hexa.encode ())
|
||||
|> MD5.of_string
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user