new_config {b64}R Documentation

Create a custom encoding engine

Description

Create a custom encoding engine

Usage

new_config(
  encode_padding = TRUE,
  decode_padding_trailing_bits = FALSE,
  decode_padding_mode = c("canonical", "indifferent", "none")
)

Arguments

encode_padding

default TRUE add 1-2 trailing = to pad results

decode_padding_trailing_bits

default FALSE. "If invalid trailing bits are present and this is true, those bits will be silently ignored." (See details for reference).

decode_padding_mode

default "canonical". Other values are "indifferent" and "none". See details for more.

Details

See base64 crate for more details.

Decode Padding Modes

There are three modes that can be used for decode_padding_mode argument.

Value

an object of class engine_config

Examples

# create a new nonsensicle config
new_config(FALSE, TRUE, "none")

[Package b64 version 0.1.1 Index]