Liking cljdoc? Tell your friends :D

hara.config


+directives+clj


+opt-keys+clj


+opt-types+clj


decrypt-textclj

(decrypt-text encrypted)
(decrypt-text encrypted key)
(decrypt-text encrypted key {:keys [format] :or {format :base-64}})

decrypts text based on key

(decrypt-text "2OJZ7B2JpH7Pa5p9XpDc6w==" -key-) => "hello"

(decrypt-text "d8e259ec1d89a47ecf6b9a7d5e90dceb" -key- {:format :hex}) => "hello"

decrypts text based on key

(decrypt-text "2OJZ7B2JpH7Pa5p9XpDc6w==" -key-)
=> "hello"

(decrypt-text "d8e259ec1d89a47ecf6b9a7d5e90dceb"
              -key-
              {:format :hex})
=> "hello"
raw docstring

encrypt-textclj

(encrypt-text text)
(encrypt-text text key)
(encrypt-text text key {:keys [format] :or {format :base-64}})

encrypts text based on key

(encrypt-text "hello" -key-) => "2OJZ7B2JpH7Pa5p9XpDc6w=="

(encrypt-text "hello" -key- {:format :hex}) => "d8e259ec1d89a47ecf6b9a7d5e90dceb"

encrypts text based on key

(encrypt-text "hello" -key-)
=> "2OJZ7B2JpH7Pa5p9XpDc6w=="

(encrypt-text "hello" -key- {:format :hex})
=> "d8e259ec1d89a47ecf6b9a7d5e90dceb"
raw docstring

globalclj

(global)
(global k)
(global k {:keys [cached]})

returns the entire global map

(global :all)

returns the entire global map

(global :all)
raw docstring

loadclj

(load)
(load file)

helper function for file resolvers

(load "dev/test/hara.config/config.edn") => map?

helper function for file resolvers

(load "dev/test/hara.config/config.edn")
=> map?
raw docstring

resolveclj

(resolve form)
(resolve form key)

helper function for resolve

(resolve 1) => 1

(resolve [:str ["hello" " " "there"]]) => "hello there"

helper function for resolve

(resolve 1) => 1

(resolve [:str ["hello" " " "there"]])
=> "hello there"
raw docstring

resolve-keyclj

(resolve-key key)

resolves the key for decryption

(def -key- (resolve-key "3YO19A4QAlRLDc8qmhLD7A==")) => #'-key-

resolves the key for decryption

(def -key- (resolve-key "3YO19A4QAlRLDc8qmhLD7A=="))
=> #'-key-
raw docstring

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

× close