Liking cljdoc? Tell your friends :D

taoensso.nippy.crypto

Low-level crypto utils. Private & alpha, very likely to change!

Low-level crypto utils.
Private & alpha, very likely to change!
raw docstring

cbc-cipherclj

(cbc-cipher)
source

cipher-kit-aes-cbcclj

Default CipherKit for AES CBC

Default CipherKit for AES CBC
sourceraw docstring

cipher-kit-aes-gcmclj

Default CipherKit for AES GCM

Default CipherKit for AES GCM
sourceraw docstring

decryptclj

(decrypt cipher-kit salt-size salt->key-fn ba)
source

encryptclj

(encrypt cipher-kit ?salt-ba key-ba ba)
source

gcm-cipherclj

(gcm-cipher)
source

ICipherKitcljprotocol

get-cipherclj

(get-cipher _)

Returns a thread-safe javax.crypto.Cipher instance.

Returns a thread-safe `javax.crypto.Cipher` instance.

get-iv-sizeclj

(get-iv-size _)

Returns necessary iv-ba length.

Returns necessary iv-ba length.

get-key-specclj

(get-key-spec _ ba)

Returns a javax.crypto.spec.SecretKeySpec.

Returns a `javax.crypto.spec.SecretKeySpec`.

get-param-specclj

(get-param-spec _ iv-ba)

Returns a java.security.spec.AlgorithmParameters.

Returns a `java.security.spec.AlgorithmParameters`.
source

prngclj

(prng)
source

rand-bytesclj

(rand-bytes size)
source

sha512-baclj

(sha512-ba salt-ba utf8)
(sha512-ba salt-ba utf8 n-rounds)

SHA512-based key generator. Good JVM availability without extra dependencies (PBKDF2, bcrypt, scrypt, etc.). Decent security when using many rounds.

SHA512-based key generator. Good JVM availability without extra dependencies
(PBKDF2, bcrypt, scrypt, etc.). Decent security when using many rounds.
sourceraw docstring

sha512-mdclj

(sha512-md)
source

take-baclj

(take-ba n ba)
source

utf8->baclj

(utf8->ba s)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close