wtlgo / base4

Who tf needs base64?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Total alerts Language grade: C/C++

base4

Base64 has too many characters... It has to be fixed!

Requirements

  • CMake >= 3.12
  • C++11 compatible compiler
  • git

How to build

$ git clone https://github.com/wtlgo/base4.git
$ mkdir base4/build && cd base4/build
$ cmake ..
$ cmake --build .
$ cmake --install .

How to use

# Encoding string
$ base4 encode "foo"
-*-*-*%%-*%%

# Decoding string
$ base4 decode "-*-*-*%%-*%%"
foo

# Encoding string with different charset
$ base4 encode --charset ABCD "foo"
BCBCBCDDBCDD

# Decoding string with different charset
$ base4 decode --charset ABCD "BCBCBCDDBCDD"
foo

About

Who tf needs base64?

License:MIT License


Languages

Language:C++ 85.6%Language:CMake 14.4%