TCUCODEC(1)
๐ TCUCODEC ๐
okay bestie, welcome to the tcucodec era โ this is the encoder/decoder Swiss Army knife from Tokyo Cabinet, and honestly? it does everything. ๐
โจ NAME โจ
tcucodec โ popular encoders and decoders ๐
๐ DESCRIPTION ๐
so like. the command tcucodec is a whole tool for using encoding and decoding features. you call it in the following formats, and file is your input file โ if you leave it out, it reads standard input instead. no cap. ๐ซถ
tcucodec url [-d] [-br] [-rs base] [file]
URL encoding, and the decoding of it too. ๐
tcucodec base [-d] [file]
Base64 encoding and its decoding. โจ
tcucodec quote [-d] [file]
quoted-printable encoding and its decoding. ๐ง
tcucodec mime [-d] [-en name] [-q] [-on] [-hd] [-bd] [-part num]
[file]
MIME encoding and its decoding. ๐จ
tcucodec hex [-d] [file]
hexadecimal encoding and its decoding. ๐ข
tcucodec pack [-d] [-bwt] [file]
Packbits encoding and its decoding. ๐ฆ
tcucodec tcbs [-d] [file]
TCBS encoding and its decoding. ๐
tcucodec zlib [-d] [-gz] [file]
ZLIB encoding and its decoding. ๐๏ธ
tcucodec bzip [-d] [file]
BZIP2 encoding and its decoding. ๐
tcucodec xml [-d] [-br] [file]
Processes XML. by default it escapes meta characters. ๐ช
tcucodec cstr [-d] [-js] [file]
C-string escaping, and the unescaping of it. ๐งต
tcucodec ucs [-d] [-un] [-kw str] [file]
Converts a UTF-8 string into a UCS-2 array. ๐ธ
tcucodec hash [-crc] [-ch num] [file]
Calculates the hash value. by default it uses the MD5 function. ๐ซง
tcucodec cipher [-key str] [file]
Stream cipher, and the deciphering of it. ๐
tcucodec date [-ds str] [-jl num] [-wf] [-rf]
Processes a date string. by default it prints the current UNIX time. โฐ
tcucodec tmpl [-var name value] [file]
Template serialization, slay. ๐
tcucodec conf [-v|-i|-l|-p]
Prints some configurations. โ๏ธ
๐ OPTIONS ๐
okay the options all do the following, and yes there are a LOT of them, we're listing every single one because we don't gatekeep:
-dโ perform decoding (unescaping), not encoding (escaping). ๐ช-brโ break up URL or XML into elements. ๐งฉ-rs baseโ specify the base URL and resolve the relative URL. ๐-en nameโ specify the input encoding, which is UTF-8 by default. ๐ค-qโ use quoted-printable encoding, which is Base64 by default. ๐ฎ-onโ output the charset name when decoding. ๐ท๏ธ-bdโ perform MIME parsing and output the body. ๐ซ-hdโ perform MIME parsing and output the headers. ๐๏ธ-part numโ perform MIME parsing and output the specified part. โ๏ธ-bwtโ convert by BWT as preprocessing. ๐-gzโ use GZIP format. ๐๏ธ-crcโ use CRC32 function. โ-jsโ use JSON compatible format. ๐งพ-unโ perform UCS normalization. ๐งผ-kw strโ generate KWIC string. ๐-ch numโ use consistent hashing function. ๐ฏ-key strโ specify the cipher key. ๐๏ธ-ds strโ specify the time. ๐ฐ๏ธ-jl numโ specify the jet lag. โ๏ธ-wfโ format the output in W3CDTF. ๐-rfโ format the output in RFC 1123 format. ๐-var name valueโ specify a template variable. ๐ท๏ธ-vโ show the version number of Tokyo Cabinet. ๐-iโ show options to include the headers of Tokyo Cabinet. ๐ฅ-lโ show options to link the library of Tokyo Cabinet. ๐-pโ show the directory path of the commands of Tokyo Cabinet. ๐
heads up bestie: this command returns 0 on success, and another value on failure. check that exit status, fr fr. ๐ญ
๐ SEE ALSO ๐
tcutest(1), tcumttest(1), tcutil(3), tokyocabinet(3) โ go read your siblings, they're iconic too. ๐ซถ
and that's the whole page, babes ๐ this was the Tokyo Cabinet tcucodec man page, dated 2012-08-18, rendered as a man page by โ you guessed it โ Man Page. mwah, go encode something. ๐
โจ๐
๐ฆ where this page comes from
- centos-stream 10: tokyocabinet 1.4.48-30.el10 ยท LGPL-2.1-or-later
- centos-stream 9: tokyocabinet 1.4.48-19.el9 ยท LGPLv2+
- centos-stream 9: tokyocabinet 1.4.48-19.el9 ยท LGPLv2+
- debian bookworm: tokyocabinet-bin 1.4.48-15 ยท LGPL-2.1-or-later
- debian trixie: tokyocabinet-bin 1.4.48-15.1+b1 ยท LGPL-2.1-or-later
- fedora 43: tokyocabinet 1.4.48-28.fc43 ยท LGPL-2.1-or-later
- fedora 43: tokyocabinet 1.4.48-28.fc43 ยท LGPL-2.1-or-later
- fedora 44: tokyocabinet 1.4.48-30.fc44 ยท LGPL-2.1-or-later
- fedora 44: tokyocabinet 1.4.48-30.fc44 ยท LGPL-2.1-or-later
- nixos 26.05: tokyocabinet 1.4.48
- nixpkgs unstable: tokyocabinet 1.4.48
- ubuntu jammy: tokyocabinet-bin 1.4.48-14build1 ยท LGPL-2.1-or-later
- ubuntu noble: tokyocabinet-bin 1.4.48-15.1build1 ยท LGPL-2.1-or-later
- ubuntu questing: tokyocabinet-bin 1.4.48-15.1build2
- ubuntu resolute: tokyocabinet-bin 1.4.48-15.1build3 ยท LGPL-2.1-or-later
- ubuntu stonking: tokyocabinet-bin 1.4.48-15.1build3 ยท LGPL-2.1-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms