News for hackers. Stuff that matters.
Re:I was forced to write a blog post. So I made a code brea... by mrduncan on Sunday December 19, 2010 @04:57PM (#2022626)
Given that sample (see blog comments), it is a little trickier than a simple substitution.

Edit: I stand corrected on the original statement about lengths - wasn't paying attention and was performing integer division.

Re:I was forced to write a blog post. So I made a code brea... by olalonde on Sunday December 19, 2010 @05:02PM (#2022636)
Are you sure it's exactly 8? I get ~8.9 times its own length.

    var fox = "THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG";
    var decodedfox = atob("SDdRJFYxMSUmPT5WKD85Kzk+Mi8kK0QmJDY2VkMuRTROJT0hLk03KTFGRjUuSiAyPyhRUjNaOlJFTTYqSUNKUFRVMFZLR009IDpKLDY1IU5JKTZFMywnICY8VUROUC8hISBBIzMiLCNBJy1JPyI/T1Y/R1AiLTQ0WT0pPFMjLidLV00ySDpNNTAwJkZJRyNNMVVPSVkuLC9GIyYyLDFNSjZDNi0oIy5QOyE3OiFLIzUiKldDM01UQylTS0hVLSc3OFFDJyRQITRRWE85OlgtVzM7MjZGKElWK0dHT0FDPSgnTFUhUjtXSDZKQ1cjUjYyPFU7OVZPLEYvPkg1TERXIzEpQTpLMFRQJT9SMjNBWE40N1UhLCEjWSogRz1DMCM3WClAOkNKUD5QPykmMCtAIUNHIzdXLCk9JCVYJ0tGVFgxSSxGKyErJSVHTlJVVUQxOUJZLDklKD4yLChIMCc1I0Q3SUYhMTc9OicyKERSNFNOTiIpRz06USdENUVVRCE=");

    console.log(decodedfox.length/fox.length);
Re:I was forced to write a blog post. So I made a code brea... by narkee on Sunday December 19, 2010 @07:05PM (#2022879)
26/3 is ~8.67, I wonder if that is relevant.
Re:I was forced to write a blog post. So I made a code brea... by user24 on Sunday December 19, 2010 @05:07PM (#2022650)
> encodes to exactly 8 times it's own length

really? I have strlen(decoded-text) at 383 chars, and qbf as 43 chars, giving the encoded as 8.906976744186 times the size of the original...

Re:I was forced to write a blog post. So I made a code brea... by Dobbs on Sunday December 19, 2010 @05:08PM (#2022652)
You did the same thing I did which is to forget to force floating point division.