Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;; requires >= jdk 1.8
- (ns com.nlloyd.encode-base64
- (:import java.util.Base64))
- (defn encode [to-encode]
- (.encodeToString (Base64/getEncoder) (.getBytes to-encode)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement