Created
June 21, 2009 17:46
-
-
Save lrenn/133588 to your computer and use it in GitHub Desktop.
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
(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