https://github.com/mllg/base64url
Fast and url-safe base64 encoder and decoder for R
https://github.com/mllg/base64url
base32 base64 base64url cran r
Last synced: about 2 months ago
JSON representation
Fast and url-safe base64 encoder and decoder for R
- Host: GitHub
- URL: https://github.com/mllg/base64url
- Owner: mllg
- Created: 2016-10-04T10:02:07.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-01-11T00:16:31.000Z (over 5 years ago)
- Last Synced: 2025-03-15T00:42:19.635Z (about 2 months ago)
- Topics: base32, base64, base64url, cran, r
- Language: C
- Homepage:
- Size: 36.1 KB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# base64url
[](https://cran.r-project.org/package=base64url)
[](https://travis-ci.org/mllg/base64url)
[](https://ci.appveyor.com/project/mllg/base64url/branch/master)
[](https://coveralls.io/github/mllg/base64url?branch=master)In contrast to base64 RFC3548, the 62nd character (`'+'`) is replaced with `'-'`, the 63rd character (`'/'`) is replaced with `'_'`.
Furthermore, the encoder does not fill the string with trailing `'='`.
The resulting encoded strings comply to the regular expression pattern `'[A-Za-z0-9_-]'` and thus are safe to use in URLs or for file names.For a small benchmark, see the [vignette](https://cran.r-project.org/package=base64url/vignettes/Benchmarks.html).
As of version 1.1, this package also ships with a simple base32 encoder/decoder suited to mangle file names on case insensitive file systems.
## Installation
For the stable release, just install the latest version from [CRAN](https://cran.r-project.org/package=base64url):
```{R}
install.packages("base64url")
```
For the development version, use [devtools](https://cran.r-project.org/package=devtools):
```{R}
devtools::install_github("mllg/base64url")
```