AES cipher. Implementation inspired by http://stackoverflow.com/questions/992019/java-256bit-aes-encryption/
AES cipher. Implementation inspired by http://stackoverflow.com/questions/992019/java-256bit-aes-encryption/
(aes-decrypt aes-key bytes)
Decrypt the byte array with the given key. The first 16 bytes of the byte array must be the IV.
Decrypt the byte array with the given key. The first 16 bytes of the byte array must be the IV.
(aes-encrypt aes-key bytes)
Encrypt the byte array with the given key. Returns a byte-array with the first 16-bytes being the IV, suitable for decryption with aes-decrypt
Encrypt the byte array with the given key. Returns a byte-array with the first 16-bytes being the IV, suitable for decryption with aes-decrypt
(aes-key password salt bits)
Generate AES key from the given password and salt. Salt should be eight characters long. Bits can be 128, 192 or 256.
Generate AES key from the given password and salt. Salt should be eight characters long. Bits can be 128, 192 or 256.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close