base64: Base64 Functions

base64R Documentation

Base64 Functions

Description

Encode and decode in Base64.

Usage

encode64(x)
decode64(s, toChar = TRUE)

Arguments

x

Character vector or list of numeric vectors of ASCII byte codes.

s

Base64-encoded character strings.

toChar

Logical. If TRUE, return the result as character, otherwise numeric ASCII byte codes.

Value

encode64 returns base64-encoded character strings.

decode64 returns a character vector or a list of numeric vectors of ASCII byte codes.

Examples

encode64("This is a string to encode.")
decode64(encode64("This is a string to encode and decode."))

graywh/r-gmisc documentation built on April 19, 2023, 1:42 p.m.