Liking cljdoc? Tell your friends :D

altcha-clj.core


ab2hexclj/s≠

clj
(ab2hex byte-array)
cljs
(ab2hex array-buffer)
source (clj)source (cljs)

create-challengeclj/s

(create-challenge options)

Creates a challenge for the client to solve. options is a map of the following keys:

  • :algorithm - algorithm for creating a digest of the challenge, default is SHA-256
  • :max-number - highest random number used for generating the challenge. Default is 1e6
  • :salt-len - length of the salt. Default is 12
  • :expires - optional, recommended expiration time of the challenge validity in seconds
  • :hmac-key - required, the secret key for creating the HMAC signature
  • :salt - optional, custom salt to use instead of generating one
  • :number - optional, custom number to use instead of generating one
  • :params - optional, additional parameters to include in the salt
Creates a challenge for the client to solve.
options is a map of the following keys: 
- :algorithm - algorithm for creating a digest of the challenge, default is SHA-256
- :max-number - highest random number used for generating the challenge. Default is 1e6
- :salt-len - length of the salt. Default is 12
- :expires - optional, recommended expiration time of the challenge validity in seconds
- :hmac-key - required, the secret key for creating the HMAC signature
- :salt - optional, custom salt to use instead of generating one
- :number - optional, custom number to use instead of generating one
- :params - optional, additional parameters to include in the salt
sourceraw docstring

createChallengecljs

(createChallenge options)
source

default-algclj/s

source

default-max-numberclj/s

source

default-salt-lenclj/s

source

hash-hexclj/s

(hash-hex algorithm data)
source (clj)source (cljs)

hmac-hexclj/s

(hmac-hex algorithm data key)
source (clj)source (cljs)

random-bytesclj/s

(random-bytes n)
source (clj)source (cljs)

random-intclj/s

(random-int max)
source (clj)source (cljs)

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

× close