Skip to content

Instantly share code, notes, and snippets.

@cddr
Created October 16, 2014 04:34
Show Gist options
  • Save cddr/ac89b88f93f92b6b913b to your computer and use it in GitHub Desktop.
Save cddr/ac89b88f93f92b6b913b to your computer and use it in GitHub Desktop.
(defn encrypt [attr]
(reify
clojure.lang.Named
(getNamespace [this]
(.getNamespace attr))
(getName [this]
(.getName attr))
clojure.lang.IFn
(invoke [_ obj]
(password/encrypt (attr obj)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment