Skip to content

Instantly share code, notes, and snippets.

@lrenn
Created June 21, 2009 17:46
Show Gist options
  • Save lrenn/133588 to your computer and use it in GitHub Desktop.
Save lrenn/133588 to your computer and use it in GitHub Desktop.
(deftest test-encrypt-decrypt
(let [message "Foo Bar Bizz Buzz"
algorithm "AES/CBC/PKCS5Padding"
param (gen-iv-param 16)]
(is (= (decrypt *secret-key* algorithm param
(encrypt *secret-key* algorithm param message))
message))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment