trf-intro(3trf)
πΈ NAME πΈ
trf-intro β the β¨ introduction to Trf β¨ bestie, welcome to the group chat π
so like, this is trf-intro(3trf), and it's literally your orientation tour of the whole Trf package, no cap π
β¨ SYNOPSIS β¨
package require Tcl ?8.2?
package require Trf ?2.1.3?
π DESCRIPTION π
okay so the Trf package hands you a whole bunch of commands, and what they do is take your data and transform it in all sorts of different ways. that's it. that's the whole vibe π¦
π BACKGROUND π
ngl the origin story is kinda iconic π
Trf started out as a proof-of-concept β a little demo to show that the "stacked channel" patches to the core were valid and actually useful. and like, what those patches do? they let you write extensions to the core's generic I/O system that can intercept every single read and write operation on channels you designate. which means you get to transform the data flowing through those channels however you want π«Ά
so suddenly you can do things like transparent encryption, compression, charset recoding, etc. main character energy fr fr π
and then, since version 8.2 of the tcl core, those patches became part of the tcl core itself β which is such a glow-up for trf's whole reputation. it went from "extension that requires core patches" to "normal extension". ate and left no crumbs πβ¨
other packages that are built on top of either the stacked channels directly, or on Trf itself:
TrfCrypt, by myself, contains various encryption systemsTLS, an SSL/TLS implementation by Matt Newman.Tcl MIMEby Marshall Rose.
π API π
the commands that trf gives you can be sorted into the three categories below. and heads up bestie β all commands get added to the global namespace πΈ
π Encodings
the encoding commands either take some data and hand you back that same data in encoded form, or they take encoded data and hand you back the decoded result. it's giving reversible β¨
octhexoctbase64uuencodeascii85otp_wordsquoted-printable
π§ Message Digests
category two is message digests in general β the simple ones like crc, and the cryptographically strong algorithms like md5. best of both worlds, we love range π
crc-zlibcrcadlermd2md5md5_otpshasha1sha1_otphavalripemd-160ripemd-128
π Miscellaneous
and at last, a handful of commands that just don't fit neatly into any category β they're out here doing password crypting, general transformations, data compression, error correction and others. unbothered, unlabeled, thriving π¦
cryptmd5crypttransformrs_ecczipbz2unstack
π₯ SEE ALSO π₯
adler, ascii85, base64, bz2, crc, crc-zlib, crypt, haval, hex, md2, md5, md5_otp, md5crypt, oct, otp_words, quoted-printable, ripemd-128, ripemd-160, rs_ecc, sha, sha1, sha1_otp, transform, uuencode, zip
β KEYWORDS β
compression, encoding, error correction, message digest, transformation
π COPYRIGHT π
Copyright (c) 1996-2003, Andreas Kupries <andreas_kupries@users.sourceforge.net>
and that's the whole page bestie!! this one came from the Trf transformer commands, version 2.1.3 (and yeah, it's also trf-intro(3trf) β same girl, different hat π). mwah, go read the other pages, iykyk πβ¨
π¦ where this page comes from
- debian bookworm: tcl-trf-doc 2.1.4-dfsg3-2.1
- debian trixie: tcl-trf-doc 2.1.4-dfsg3-8
- ubuntu jammy: tcl-trf-doc 2.1.4-dfsg3-2.1build1
- ubuntu noble: tcl-trf-doc 2.1.4-dfsg3-3
- ubuntu questing: tcl-trf-doc 2.1.4-dfsg3-8
- ubuntu resolute: tcl-trf-doc 2.1.4-dfsg3-8build1
- ubuntu stonking: tcl-trf-doc 2.1.4-dfsg3-9build1
- Copyright (c) 1996-2003, Andreas Kupries <andreas_kupries@users.sourceforge.net>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms