Standard format coercers
Standard format coercers
(b->b64 b)
Convert a byte array to URL encoded Base64. Padding ('=' chars) is stripped.
Convert a byte array to URL encoded Base64. Padding ('=' chars) is stripped.
(b64->b s)
Decodes an URL encoded string to a byte array.
Decodes an URL encoded string to a byte array.
(b64->int input)
Convert an URL encoded Base64 string to an integer.
Convert an URL encoded Base64 string to an integer.
(b64->s s)
Decodes an URL encoded string to a string.
Decodes an URL encoded string to a string.
Bit shifts for integer conversions
Bit shifts for integer conversions
(bytes->int input)
Get back a 32-bit integer from a 4-wide byte-array
Get back a 32-bit integer from a 4-wide byte-array
(int->b64 input)
Convert an integer to an URL encoded Base64 string.
Convert an integer to an URL encoded Base64 string.
(int->bytes input)
Convert an integer to a 4-wide byte array. This is used to store timestamps in ItsDangerous tokens. Since timestamps are 32-bit wide and represent seconds since the UNIX epoch, please consider another solution if you want sessions that last beyond 2038.
Convert an integer to a 4-wide byte array. This is used to store timestamps in ItsDangerous tokens. Since timestamps are 32-bit wide and represent seconds since the UNIX epoch, please consider another solution if you want sessions that last beyond 2038.
(s->b64 s)
Convert a string to URL encoded Base64.
Convert a string to URL encoded Base64.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close