X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,5e20dd0eb81e05d7 X-Google-Attributes: gidf996b,public From: "Carl R. White" Subject: Re: ROT13 (was: sigs) Date: 1997/12/03 Message-ID: #1/1 X-Deja-AN: 294846602 References: <347B24B4.A2B045E5@inspace.net> <347D8040.63DECDAD@on.spammer> <65npea$do8$9@usenet88.supernews.com> <6imUkyrSgPB@mfju.hit.handshake.de> <34803A68.3B54AFBF@on.spammer> <34804830.301B@mpq.mpg.de> <3480704A.2781E494@on.spammer> <65qonf$9bh@freenet-news.carleton.ca> X-Sender: crwhite@dcsun4.comp.brad.ac.uk Organization: University of Bradford Reply-To: crwhite@comp.brad.ac.uk Newsgroups: alt.ascii-art On 30 Nov 1997, Tim Park wrote: > > Veronica Karlsson (dream@on.spammer) writes: > > Naqernf Freise jebgr: > >> Veronica Karlsson wrote: > >> > But that only works for text in posts people have already sent, not in > >> > text you are writing... (at least I haven't found that button yet...) > >> OK, I think writing a C program is the most elegant > >> way to do it and you did it. > > And it took me several minutes... (I had to look up "mod") > > What about (from memory ^_^;) > > tr A-Z M-ZA-N 26 )) ; do x=$((x - 26)) done while (( x <= 0 )) ; do x=$((x + 26)) done lc2=$(echo $lc$lc | awk '{print substr($1, '$x', 26)}') uc2=$(echo $uc$uc | awk '{print substr($1, '$x', 26)}') tr "$lc$uc" "$lc2$uc2" -------------------------------------------------------------------------- This is starting to look more like alt.unix.wizards! -------------------------------------------------------------------------- For instance, this is "echo {something :) } | rot 13" : Gb or be abg gb or gung vf gur dhrfgvba and this is something similar in rot 7: Hshz wvvy Fvypjr, ol pz iba h zrbss :) To undo rotX you must use rot(26 - X), which is why people prefer rot13! e.g. rot 7 -> rot 19 etc. -- Carl R White | e-mail...: crwhite-@-comp.brad.ac.uk | finger...: crwhite-@-dcsun1.comp.brad.ac.uk | web......: http://www.student.comp.brad.ac.uk/~crwhite/ *** Anti-Spam: Fake IP address in Header. Change '-@-' to '@' in .sig. ***