mirror of
https://ghproxy.net/https://github.com/elementor/wp2static.git
synced 2026-07-21 11:47:28 +08:00
11 lines
259 B
Clojure
11 lines
259 B
Clojure
(ns wp2static-test.util)
|
|
|
|
(let [b16 (org.apache.commons.codec.binary.Base16. true)]
|
|
(defn base16 [bytes]
|
|
(String.
|
|
(.encode b16 bytes))))
|
|
|
|
(defn md5 [s]
|
|
(-> (java.security.MessageDigest/getInstance "MD5")
|
|
(.digest (.getBytes s))
|
|
base16))
|