Base64 encoding. By default uses the RFC 4648 dialect (file/url
encoding) where characters 62 and 63 are "-" and "_". Pass in "+"
and "/" to get the RFC 1421 variant (as in other R packages that
do base64 encoding).
x <- encode64("hello")
x
decode64(x)
# Encoding things into filename-safe strings is the reason for# this function:encode64("unlikely/to be @ valid filename")