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

encryptclj

(encrypt {:keys [cipher-kit ?salt-ba key-ba plain-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

pwd-as-baclj

(pwd-as-ba utf8-or-ba)
source

rand-boolclj

(rand-bool)

Uses srng

Uses `srng`
sourceraw docstring

rand-bytesclj

(rand-bytes size)

Uses srng

Uses `srng`
sourceraw docstring

rand-doubleclj

(rand-double)

Uses srng

Uses `srng`
sourceraw docstring

rand-gaussclj

(rand-gauss)

Uses srng

Uses `srng`
sourceraw docstring

rand-longclj

(rand-long)
(rand-long n)

Uses srng

Uses `srng`
sourceraw docstring

rand-nthclj

(rand-nth coll)

Uses srng

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

srngclj

(srng)

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

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

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