Last active
January 4, 2018 21:57
-
-
Save mangosmoothie/d45221a7147da217534546c03a654e0a to your computer and use it in GitHub Desktop.
Clojure decode Base64 string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; requires >= jdk 1.8 | |
(defn decode-base64 [to-decode] | |
(String. (.decode (java.util.Base64/getDecoder) to-decode))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment