Skip to content
/ base64 Public

Enhanced backward compatible alternative of Linux utility base64

License

Notifications You must be signed in to change notification settings

zemanlx/base64

Repository files navigation

Build Status Go Report Card GuardRails badge

base64

Fully backward compatible alternative of Linux base64 plus

  • URL encoding option
  • No padding option (both for standard and URL encoding)

Download

Binaries are build for wide variety of OS and architectures and can be found on release page.

Usage

base64 [OPTION]... [FILE]

Base64 encode or decode FILE, or standard input, to standard output. With no FILE, or when FILE is -, read standard input.

With no options base64 will encode input data to using standard encoding with padding.

  -d, --decode           decode data
  -h, --help             print this help
  -i, --ignore-garbage   when decoding, ignore non-alphabet characters
  -n, --no-padding       omit padding
  -u, --url              use URL encoding according RFC4648
  -v, --version          output version information and exit
  -w, --wrap uint        wrap encoded lines after COLS character,
                         use 0 to disable line wrapping (default 76)

The data are encoded as described for the base64 alphabet in RFC 4648. When decoding, the input may contain newlines in addition to the bytes of the formal base64 alphabet. Use --ignore-garbage to attempt to recover from any other non-alphabet bytes in the encoded stream.

About

Enhanced backward compatible alternative of Linux utility base64

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published