Gerhard Reithofer <
[email protected]> wrote:
Hi *,
I tried to unrotate a message using tcllib.
In the manual I found:
::tcl::transform::rot chan key
but no example.
Can anyone give me a short example how to decrypt a message string like "tffbe://"?
Verifying what the result should be:
$ echo abcdefg | rot13
nopqrst
"Encrypting" using Tcl:
$ rlwrap tclsh
% package require tcl::transform::rot
1
% set fd [open rot13.out {WRONLY CREAT TRUNC}]
file3
% tcl::transform::rot $fd 13
file3
% puts $fd abcdefg
% close $fd
% exit
Checking TCL matches the rot13 CLI command output:
$ cat rot13.out
nopqrst
So for your example string:
$ rlwrap tclsh
% package require tcl::transform::rot
1
% set fd [open rot14.out {WRONLY CREAT TRUNC}]
file3
% tcl::transform::rot $fd 14
file3
% puts $fd tffbe://
% close $fd
% exit
$ cat rot14.out
https://
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)