GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Furhter investigation of this issue, made me conclude that the bug was in my input. Not my code.
So, once again:
Code:
bash$cat garbled.txt
Doogsauumauipnt >)! Zov qatsfd!ovr!ieipt!fjlues >) Wiau brf zovr!tirfe!fbvprjtf uedhoidam copkt? Pmebsf jndlvdf bt!lfatt!ooe!spfuwbrf fnhioefrjnh copk- uhf ptiess!cbn!bf xhbtfvfr- j.f.- qhzsjct,!mbti,!euc/
bash$cat wiau.c
main(){char i=0,_;while((_=getchar())>0)putchar((i=_-33?!i:1)?--_:_);}
bash$ make wiau
cc wiau.c -o wiau
bash$./wiau <garbled.txt
Congratulations =) You passed our idiot filter =)What are your three favorite technical books?Please include at least one software engineering book, the others can be whatever, i.e., physics, math, etc.
@ HKo -- very nice
Compact and efficient, with as you mention, the benefit of easily translating the next chunk of such nonsense without editing the source.
@ HKo -- very nice
Compact and efficient, with as you mention, the benefit of easily translating the next chunk of such nonsense without editing the source.
The original cipher is included within the executable, so that if nothing is presented to stdin, and no file is given to it, it spews out the built-in cipher
Ditto. The lolcode was hilarious. As I said on the thread that linked me to this one, I can't thank everybody individually, but I rated the thread 5 stars - first time I felt compelled to rate a thread. Great stuff.
he didn't even notice after seeing the cleartext that every other letter was unencrypted....... definitely flunked for that job.....
seems to me i remember there was an early "desktop" computer that stored text data in a similar format..... can't remember if it was some kind of checksum thing or some proprietary file type so that files created with that format couldn't be read by other programs......long time ago..... maybe it was wordstar for CP/M?
Last edited by unclejed613; 10-06-2009 at 08:21 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.