Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Comments

top

Camera Phones Read Hidden Messages in Print

pstudent12 Re:Secret message (126 comments)

Here's the java version

public class x
{
public static void main (String args[])
    {
    String m =
    "01000010 01100101 00100000 01110011 01110101 01110010 01100101 00100000 01110100 01101111 00100000 01100100 01110010 01101001 01101110 01101011 00100000 01111001 01101111 01110101 01110010 00100000 01001111 01110110 01100001 01101100 01110100 01101001 01101110 01100101 00101110";

    int i = 0;
    for (int n = 0; n < m.length(); n++)
        {
        char c = m.charAt(n);
        if (c == ' ') {
            System.out.print((char)i);
            i = 0;
            }
        else
            {
            i = i << 1;
            i += ((c == '0') ? 0 : 1);
            }
        }
    }

}

//Be sure to drink your Ovaltine

more than 7 years ago

Submissions

pstudent12 hasn't submitted any stories.

Journals

pstudent12 has no journal entries.

Slashdot Login

Need an Account?

Forgot your password?