Namespace: joker.hex
v1.0Contents
Summary
Encodes and decodes strings with lower-case hexadecimal text.
Index
Constants
Constants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.-
(None.)
Variables
-
(None.)
Functions, Macros, and Special Forms
-
decode-string
Function v1.0(decode-string s)Decodes hexadecimal string s and returns the represented bytes as a string.
Throws Error when s has odd length or contains non-hexadecimal characters.
The returned string may contain arbitrary bytes, not only printable text.
Example:
(joker.hex/decode-string "68656c6c6f")
;; => "hello" -
encode-string
Function v1.0(encode-string s)Returns the lower-case hexadecimal encoding of string s.
Example:
(joker.hex/encode-string "hello")
;; => "68656c6c6f"