engine: Create an encoding engine

View source: R/engine.R

engineR Documentation

Create an encoding engine

Description

Create an encoding engine

Usage

engine(which = "standard")

new_engine(.alphabet = alphabet(), .config = new_config())

Arguments

which

default "standard". The base64 encoding engine to be used. See details for more.

.alphabet

an object of class alphabet as created with alphabet() or new_alphabet()

.config

an object of class engine_config as created with new_config()

Details

Engines

By default, the "standard" base64 engine is used which is specified in RFC 4648.

Additional pre-configured base64 engines are provided these are:

  • "standard_no_pad": uses the standard engine without padding

  • "url_safe": uses a url-safe alphabet with padding

  • "url_safe_no_pad": uses a url-safe alphabet without padding

See base64 crate for more.

Value

an object of class engine.

Examples

engine()
new_engine(alphabet("bcrypt"), new_config())

b64 documentation built on June 8, 2025, 10:32 a.m.