Liking cljdoc? Tell your friends :D

hara.config.base.secure


*key*clj


+master-defaults+clj


+master-key+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

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