io.randomseed.utils.crypto.codecs
added in 1.0.0
Wrappers on codecs from buddy library.
base64->bin
added in 1.2.39
(base64->bin v)Takes an object, converts it to a string (unless it’s already a string) which should be a Base64-encoded representation of data, and returns a decoded byte array.
base64->plaintext
added in 1.2.39
(base64->plaintext v)Takes an object, converts it to a string (unless it’s already a string) which should be a Base64-encoded representation of data, and returns a plain-text string.
base64-url-safe->bin
added in 1.2.39
(base64-url-safe->bin v)Takes an object, converts it to a string (unless it’s already a string) which should be a Base64-encoded, url-safe representation of data, and returns a decoded byte array.
base64-url-safe->plaintext
added in 1.2.39
(base64-url-safe->plaintext v)Takes an object, converts it to a string (unless it’s already a string) which should be a Base64-encoded, url-safe representation of data, and returns a plain-text string.
bin->base64
added in 1.2.39
(bin->base64 v)Takes a byte array and returns its Base64-encoded representation.
bin->base64-url-safe
added in 1.2.39
(bin->base64-url-safe v)Takes a byte array and returns its Base64-encoded, url-safe representation.
plaintext->base64
added in 1.2.39
(plaintext->base64 v)Takes an object, converts it to a string (unless it’s already a string), and returns a string (Base64-encoded representation, not url-safe).
plaintext->base64-url-safe
added in 1.2.39
(plaintext->base64-url-safe v)Takes an object, converts it to a string (unless it’s already a string), and returns a string (Base64-encoded, url-safe representation).
plaintext->bin
added in 1.0.0
(plaintext->bin v)Takes an object, converts it to a string (unless it’s already a string), and returns its byte-array representation.