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

add-saltclj

(add-salt ?salt-ba ba)
source

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 {:keys [cipher-kit salt-size salt->key-fn ba]
          :or {cipher-kit cipher-kit-aes-gcm}})
source

encryptclj

(encrypt {:keys [cipher-kit ?salt-ba key-ba ba rand-bytes-fn]
          :or {cipher-kit cipher-kit-aes-gcm rand-bytes-fn rand-bytes}})
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

murmur3clj

(murmur3 s)
source

prngclj

(prng)

Favours security over performance. May block while waiting on system entropy!

Favours security over performance. May block while waiting on system entropy!
sourceraw docstring

rand-boolclj

(rand-bool)

Uses prng

Uses `prng`
sourceraw docstring

rand-bytesclj

(rand-bytes size)

Uses prng

Uses `prng`
sourceraw docstring

rand-doubleclj

(rand-double)

Uses prng

Uses `prng`
sourceraw docstring

rand-gaussclj

(rand-gauss)

Uses prng

Uses `prng`
sourceraw docstring

rand-longclj

(rand-long)

Uses prng

Uses `prng`
sourceraw docstring

sha256-baclj

(sha256-ba ba)
source

sha256-mdclj

(sha256-md)
source

sha512-baclj

(sha512-ba ba)
source

sha512-key-baclj

(sha512-key-ba ?salt-ba utf8)
(sha512-key-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