Liking cljdoc? Tell your friends :D

lock-key.private.core

Private functions used by lock-key.core. Do not reference this namespace outside lock-key.core as these fns are subject to change.

Private functions used by lock-key.core. Do not reference this namespace
outside lock-key.core as these fns are subject to change.
raw docstring

byte-array-classclj

source

byte-array?clj

(byte-array? object)

Tests if a value is a byte[]. Returns true/false

object - the object to test

Tests if a value is a byte[]. Returns true/false

object - the object to test
sourceraw docstring

get-cipherclj

(get-cipher mode seed iv-bytes)

Returns an AES/CBC/PKCS5Padding Cipher which can be used to encrypt or decrypt a byte[], depending on the mode of the Cipher.

mode - (int) see https://docs.oracle.com/javase/7/docs/api/javax/crypto/Cipher.html for available modes. Typically this will be either Cipher/ENCRYPT_MODE or Cipher/DECRYPT_MODE. seed - (String) the encryption seed / secret iv-bytes - (byte[]) the initialization vector

Returns an AES/CBC/PKCS5Padding Cipher which can be used to encrypt or decrypt a
byte[], depending on the mode of the Cipher.

mode     - (int) see https://docs.oracle.com/javase/7/docs/api/javax/crypto/Cipher.html
                 for available modes. Typically this will be either Cipher/ENCRYPT_MODE
                 or Cipher/DECRYPT_MODE.
seed     - (String) the encryption seed / secret
iv-bytes - (byte[]) the initialization vector
sourceraw docstring

get-iv-bytesclj

(get-iv-bytes)

Initializes and returns a random initialization vector byte[]

Initializes and returns a random initialization vector byte[]
sourceraw docstring

get-raw-keyclj

(get-raw-key seed)

Returns an AES SecretKey encoded as a byte[]

seed - (String)the seed to initialize the key with

Returns an AES SecretKey encoded as a byte[]

seed - (String)the seed to initialize the key with
sourceraw docstring

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

× close