Liking cljdoc? Tell your friends :D

altcha-clj.encoding


clj->jsonclj

(clj->json input)

Converts a Clojure object to JSON. This is a test helper, so no Cljs.

Converts a Clojure object to JSON. 
This is a test helper, so no Cljs.
sourceraw docstring

decode-base64clj/s

(decode-base64 payload)

Cross platform helper function for decoding base64

Cross platform helper function for decoding base64
sourceraw docstring

decode-url-componentclj/s

(decode-url-component component)
source

encode-base64clj

(encode-base64 payload)

Base64 encoder. For testing only, so no Cljs.

Base64 encoder. For testing only, so no Cljs.
sourceraw docstring

encode-paramsclj/s≠

(encode-params params)
clj

Encodes the challenge parameters as an URL (using URLEncoder)

Encodes the challenge parameters as an URL (using `URLEncoder`)
cljs

Encodes the challenge parameters as a URL (using URLSearchParams)

Encodes the challenge parameters as a URL (using `URLSearchParams`)
source (clj)source (cljs)raw docstring

extract-paramsclj/s

(extract-params salt)

Extracts the URL-encoded parameters map from the salt. The parameters must be simple types (i.e. numbers, strings, nil/null or keywords. Collections are not supported yet)
Special characters must be first decoded by decode-url-component

Extracts the URL-encoded parameters map from the salt.
The parameters must be simple types 
(i.e. numbers, strings, nil/null or keywords. Collections are not supported yet)  
Special characters must be first decoded by `decode-url-component`
sourceraw docstring

json->cljclj/s

(json->clj json-str)

Converts a JSON string to a corresponding Clojure object. ClojureScript implementation uses the native JSON.parse JVM version uses Cheshire.

Converts a JSON string to a corresponding Clojure object.
ClojureScript implementation uses the native JSON.parse
JVM version uses Cheshire.
sourceraw docstring

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

× close