Intersting if fairly simple bitstream shift. Have a look in perlop for the Bitwise Sting Operators(~ | & ^) which can really muddy the waters. tachyon Dissection: use strict; @$=qw(170 234 148 10 8 58 159 84 100 81 10 128 21 165 76 0 50 56 92 22 + 165 12); undef$;; # nice obfu var $SUBSEP for(@$){ $;.=unpack("b8",chr($_)); # convert dec into bit stream } while($;=~/([01]{7})/gx){ # grab seven bits => $1 # this line converts the 7 bits to ASCII char, then uses ord, # adds 32, back to ASCII with chr and prints it print(chr(ord(pack("b7",$1))|32)); } print"\n";

In reply to Re: Playing with bytes by tachyon
in thread Playing with bytes by NearO

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.