carta
base16384(1)

base163841

Encode binary files to printable utf16be

Usage

base16384 - [ed] [t] [n] [cC] <inputfile> <outputfile>

Overview

There are 16384 Chinese characters ( from 4E00 to 8DFF ) as the alphabet , just like what base64 did. If length of the data has a remainder after mod 7, an unicode Chinese character 3Dxx will be appended to present it with xx ranging from 01 to 06

Options

-e

Read data from inputfile and encode them into outputfile. It's the default option when neither -e nor -d is specified.

-d

Read data from inputfile and decode them into outputfile.

-t

Show spend time.

-n

Do not write utf16be file header 0xFEFF to the output.

-c

Embed or validate checksum in remainder when using stdin or stdout or inputsize > _BASE16384_ENCBUFSZ.

-C

Do -c forcely.

inputfile

An absolute or relative file path. Specially, pass - to read from stdin.

outputfile

An absolute or relative file path. Specially, pass - to write to stdout.

Exit status

0

Exit on success.

1

Get file size error.

2

Fopen output file error.

3

Fopen input file error.

4

Write file error.

5

Open input file error.

6

Map input file error.

7

Write file error in mmap.

8

Invalid input/output filename.

9

Invalid commandline parameter.

10

Invalid decoding checksum.

History

  • Debian 13 (Trixie): the text shown here
  • Debian 12 (Bookworm)

-C since Debian 13 (Trixie); -c since Debian 13 (Trixie); -d since Debian 13 (Trixie); -n since Debian 13 (Trixie); -t since Debian 13 (Trixie).

Bugs

There are currently no known bugs in this application. If you have found them, please contact the author on github.

Author

This manual page contributed by Fumiama Minamoto.

From base16384 2.3.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.