powered by
Create a custom encoding engine
new_config( encode_padding = TRUE, decode_padding_trailing_bits = FALSE, decode_padding_mode = c("canonical", "indifferent", "none") )
an object of class engine_config
engine_config
default TRUE add 1-2 trailing = to pad results
TRUE
=
default FALSE. "If invalid trailing bits are present and this is true, those bits will be silently ignored." (See details for reference).
FALSE
default "canonical". Other values are "indifferent" and "none". See details for more.
"canonical"
"indifferent"
"none"
See base64 crate for more details.
There are three modes that can be used for decode_padding_mode argument.
decode_padding_mode
"canonical": padding must consist of 0, 1, or 2 = characters
"none": there must be no padding characters present
"indifferent": canonical padding is used, but omitted padding characters are also permitted
# create a new nonsensicle config new_config(FALSE, TRUE, "none")
Run the code above in your browser using DataLab