[Date Prev][Date Next][Thread Prev][Thread Next]
[Search]
[Date Index]
[Thread Index]
Re: [FWP] Whitespace: the final frontier
On Tue, Feb 01, 2000 at 12:18:59PM +0100, Mark Whitaker (EML) wrote:
> 1. Write your program as per usual.
> 2. unpack the code into a binary representation
> 3. Convert the 1s to spaces and the 0s to tabs (or whatever)
> And there you have it: a script neatly packaged away into whitespace! In order to run it, you just perform the steps in reverse, i.e.:
>
> 1. Convert the spaces and tabs (or whatever) back to 1s and 0s
> 2. pack to a string
> 3. eval the string
I just saw an example in the Obfuscated C Contest which something
similar. It converted pairs of braces with some spaces in between
into ASCII characters where the number of spaces gave the actual
character.
-- Holger
--
+ GnuPG || PGP key -> finger eitz@jonathan.weh.rwth-aachen.de +
+++ Debian GNU/Linux <octavian@debian.org> +++ ICQ: 2882018 +++
==== Want to unsubscribe from Fun With Perl? Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
==== unsubscribe