https://github.com/simonwhitaker/base64url
A command-line tool for encoding and decoding using the Base64 URL encoding scheme.
https://github.com/simonwhitaker/base64url
base64-encoding base64url
Last synced: 12 months ago
JSON representation
A command-line tool for encoding and decoding using the Base64 URL encoding scheme.
- Host: GitHub
- URL: https://github.com/simonwhitaker/base64url
- Owner: simonwhitaker
- Created: 2020-12-11T14:33:57.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T17:39:54.000Z (over 1 year ago)
- Last Synced: 2025-01-01T02:29:04.031Z (about 1 year ago)
- Topics: base64-encoding, base64url
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# base64url
A command-line tool for encoding and decoding using the Base64 URL encoding
scheme.
Requires Python 3. Tested on Python 3.4 and above.
```
$ ./base64url -h
usage: base64url.py [-h] [-b BREAKAT] [-t] [-d] [-i INPUT] [-o OUTPUT]
optional arguments:
-h, --help show this help message and exit
-b BREAKAT, --breakat BREAKAT
break encoded string into num character lines
-t, --trim trim padding on encoded string
-d, -D, --decode decodes input
-i INPUT, --input INPUT
input file (default: stdin)
-o OUTPUT, --output OUTPUT
output file (default: stdout)
```
## Installation
`base64url` doesn't have to be installed; it has no dependencies other than
Python 3.6 or above. Just run it as `path/to/base64url`.
Of course, you can if you wish add it to your PATH.
## Using with Docker
To encode, pipe to:
```
docker run -i --rm simonwhitaker/base64url
```
To decode, pipe to:
```
docker run -i --rm simonwhitaker/base64url -d
```