|
|
|
@ -9,7 +9,7 @@ |
|
|
|
(defn sign |
|
|
|
(defn sign |
|
|
|
"Returns the MD5 hash for the concatenation of all passed parameters" |
|
|
|
"Returns the MD5 hash for the concatenation of all passed parameters" |
|
|
|
[& args] |
|
|
|
[& args] |
|
|
|
(let [input (sreplace (apply str args) #"\r*" "")] |
|
|
|
(let [input (sreplace (apply str args) #"\r+" "")] |
|
|
|
(do (.reset md5Instance) |
|
|
|
(do (.reset md5Instance) |
|
|
|
(.update md5Instance (.getBytes input)) |
|
|
|
(.update md5Instance (.getBytes input)) |
|
|
|
(apply str |
|
|
|
(apply str |
|
|
|
|