base64-url: Encode or decode 'base64'

base64-urlR Documentation

Encode or decode 'base64'

Description

Compatible with results from package 'base64url', but implemented with package 'base64enc'. I simply do not like it when I have to depend on two packages that can achieve the same goal. This implementation is slower. If you have 'base64url' installed, please use that version.

Usage

base64_urlencode(x)

base64_urldecode(x)

Arguments

x

character vector to encode or decode

Value

character vector of the same length as x

Examples


x = "plain text"
encoded = base64_urlencode(x)
decoded = base64_urldecode(encoded)
print(encoded)
print(decoded)


dipsaus documentation built on June 27, 2024, 5:10 p.m.