tcl::t...rm::rot(3tcl)
π tcl::transform::rot β the rot-encryption glow-up π
okay bestie, welcome to the tcl::transform::rot page from the tcllib manual, section 3tcl. it's giving β¨channel transformationβ¨ and honestly? she's iconic.
πΈ NAME πΈ
tcl::transform::rot β rot-encryption, no cap π
π¦ SYNOPSIS π¦
package require Tcl 8.6 9
package require tcl::transform::core ?1.1?
package require tcl::transform::rot ?1.1?
::tcl::transform::rot chan key
like. look at her. four whole lines of pure main character energy π
π DESCRIPTION π
so the tcl::transform::rot package hands you a command that makes a channel transformation. and what does that transformation do? bestie it does primitive encryption when you're writing, and decryption when you're reading, and it does it to the alphabetic characters specifically. π«Ά
the algorithm? it's the Caesar-cipher, and one very specific variant of it is rot13. periodt. π₯
a related transformation hangin' out in this same module is tcl::transform::otp β go say hi to her later, iykyk.
and the internal TclOO class that implements the transform handler? she's a subclass of the tcl::transform::core framework. classy. literal queen behavior π
β¨ API β¨
::tcl::transform::rot chan keyβ this command creates a rot encryption transformation sitting on top of the channelchan, and gives you back its handle. π
the key tells it how far characters get rotated in the alphabet, and it gets wrapped to the range 0...25. π
ok important thing bestie, listen: this transformation only touches bytes in the ranges ASCII65...90and97...122. that's the upper- and lower-case alphabetic characters, aka"A...Z"and"a...z". every other byte just passes straight through, untouched, unbothered, moisturized, in her lane. π
π BUGS, IDEAS, FEEDBACK π
ngl, this document β and the package it describes β will undoubtedly contain bugs and other problems. it's not a vibe, it's just facts. π
so please report them in the category virtchannel of the Tcllib Trackers at http://core.tcl.tk/tcllib/reportlist. and if you've got ideas for enhancements for either the package and/or the documentation, send those too, we're obsessed with hearing them π
when you're proposing code changes, please provide unified diffs, i.e. the output of diff -u. no chaos, we're organized here. β¨
also note: attachments are strongly preferred over inlined patches. to attach something, go to the Edit form of the ticket right after it's created, then use the left-most button in the secondary navigation bar. that's the move π«Ά
π KEYWORDS π
caesar cipher, channel transformation, cipher, decryption, encryption, reflected channel, rot, rot13, tip 230, transformation, virtual channel
π CATEGORY π
Channels
π COPYRIGHT π
Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net>
and that's the whole page bestie, tysm for reading π₯Ήπ this was tcllib version 1.1, page tcl::transform::rot from section 3tcl β slay, bye π¦β¨π
π¦ where this page comes from
- debian trixie: tcllib 2.0+dfsg-4 Β· Tcl
- ubuntu questing: tcllib 2.0+dfsg-4
- ubuntu resolute: tcllib 2.0+dfsg-5 Β· Tcl
- ubuntu stonking: tcllib 2.0+dfsg-6 Β· Tcl
- Copyright (c) 2009 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