Click to visit our sponsors!

homeGeek CultureWebstoreeCards!Forums!Joy of Tech!AY2K!webcam

  The Geek Culture Forums
  The Joy of Tech
  The binary should _say_ something!

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   The binary should _say_ something!
Dren Eht Sral
unregistered
posted December 05, 2000 09:03           Edit/Delete Message   Reply w/Quote
The binary in today (12-5-2000) should say something! I got out the ol' ASCII chart and took a whack at it, and it's neither 7 nor 8 bit ascii. Unless it's encoded some way that i don't understand (EDBIC?) it just looks like garbage. He should at least be telling his boss off if you go through the effort of decoding the binary ASCII balues...

IP: Logged

cowens
unregistered
posted December 05, 2000 09:33           Edit/Delete Message   Reply w/Quote
It does say something: SoonIwillbeyourboss!

Personaly I am dissapionted that there are no spaces and no linefeed at the end.


Compiled this c program and type "cat data | prog". Of course this assumes that you corredtly recorded all of the yeses (1) and noes (0).

Hint: bytes are delimited by commas.

#include

char pow[8] = {0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01};

int main(void) {
char byte = 0;
int i = 0;
char c;

while (fread(&c, 1, 1, stdin)) {
switch (c) {
case '1':
byte |= pow[i];
case '0':
i++;
if (i == 8) {
fputc(byte, stdout);
byte = i = 0;
}
break;
default:
}
}
return 0;
}

IP: Logged

Greg Wooledge
Alpha Geek

Posts: 254
From: Lorain, OH, USA
Registered: Jan 2000

posted December 05, 2000 09:39     Click Here to See the Profile for Greg Wooledge   Click Here to Email Greg Wooledge     Edit/Delete Message   Reply w/Quote
Yay, the binary is back! And my Nitrozac Secret Decoder Ring(TM) still works on it (after s/YES/1/g s/NO/0/g of course).


$ cat nitrozac-binary-secret-decoder-ring

<foo perl -e '$s=""; while (<> ) {$s .= $_;} $s =~ s/[^01]//g; while ($s ne "") { print pack ("B8", $s); substr($s,0,8) = ""; } print "\n";'

Thumbs down to cowens for spoiling the message so soon.

IP: Logged

Snaggy
Moderator

Posts: 1399
From: Canada
Registered: Jan 2000

posted December 05, 2000 09:44     Click Here to See the Profile for Snaggy   Click Here to Email Snaggy     Edit/Delete Message   Reply w/Quote
Magnificent Valour cowens!

Sorry to disappoint you though on the lack of spaces. It is just a quirk of the way Richard speaks his binary, ...his own dialect, so to speak.

He speaks commas between the binary yes/noes, which is his way of helping out the listener a bit ;-)

IP: Logged

Tau Zero
BlabberMouth, the Next Generation.

Posts: 1685
From:
Registered: Jan 2000

posted December 05, 2000 10:11     Click Here to See the Profile for Tau Zero     Edit/Delete Message   Reply w/Quote
Cryptographers routinely delete the spaces in text before encrypting, so why should Richard be any different in his obscurity?

Good one, Nitro and Snaggy.

IP: Logged

Lost
unregistered
posted December 05, 2000 10:52           Edit/Delete Message   Reply w/Quote
I wonder what was so hard about decoding the binary? All I needed was a pen and paper to write down the binary and switch it to hex for easy decoding.

IP: Logged

Erbo
Super Geek

Posts: 110
From: Denver, CO, US
Registered: Jan 2000

posted December 05, 2000 12:45     Click Here to See the Profile for Erbo   Click Here to Email Erbo     Edit/Delete Message   Reply w/Quote
Hmm, all I needed to decode that was an edit buffer and "man 7 ascii"...

However, I got just "SoonIwllbeyourboss!" (missing "i" in there). Must have been a transcription error, but I got the idea.

Eric

------------------
"The sands of time were eroded by the river of constant change..."

IP: Logged

X the mage
unregistered
posted December 05, 2000 22:05           Edit/Delete Message   Reply w/Quote
Strange... I got the 'i' "SoonIwillbeyourboss!". Good idea. JoT should have more codes (on a regular basis perhaps?).

IP: Logged

kimagure
Highlie

Posts: 588
From: Houston, Texas, USA
Registered: Jan 2000

posted December 05, 2000 23:25     Click Here to See the Profile for kimagure   Click Here to Email kimagure     Edit/Delete Message   Reply w/Quote

HUH?

IP: Logged

supaboy
SuperBlabberMouth!

Posts: 1242
From: Columbia, SC, USA
Registered: Jan 2000

posted December 06, 2000 09:16     Click Here to See the Profile for supaboy   Click Here to Email supaboy     Edit/Delete Message   Reply w/Quote
Thanks Greg!


I was poking around the perl manpages to try to figure it out. I was *this close* to the answer (rather more perlishly, "one way of doing it" ) before I gave up and looked in the forum. You'd already done what I was trying to do.

IP: Logged

[email protected]
unregistered
posted December 12, 2000 13:39           Edit/Delete Message   Reply w/Quote
I read the strip before I knew about this forum, came up with a python prog to decode it. This could probably be done shorter (though probably not a one-liner) but it worked the first time I ran it. The first three lines of the function aren't really necessary if the data's in the right format.

I was rather embarassed about wasting an hour of my time doing this but then I thought, to hell with that - say it loud, I'm a geek and I'm proud.

--Paul Winkler


#!/usr/bin/env python

import string

def bits_to_int(somestring):
somestring = `somestring` # make sure
somestring = string.replace(somestring, "'", "")
somestring = string.strip(somestring)
result = 0
for i in range(len(somestring)):
# we want to go from right to left
position = (i * -1) - 1
if int(somestring[position]):
result = result + (2 ** i)
return result


data = [
'01010011',
'01101111',
'01101111',
'01101110',
'01001001',
'01110111',
'01101001',
'01101100',
'01101100',
'01100010',
'01100101',
'01111001',
'01101111',
'01110101',
'01110010',
'01100010',
'01101111',
'01110011',
'01110011',
'00100001'
]


for s in data:
print "%c" % bits_to_int(s),

IP: Logged

Tau Zero
BlabberMouth, the Next Generation.

Posts: 1685
From:
Registered: Jan 2000

posted December 12, 2000 13:57     Click Here to See the Profile for Tau Zero     Edit/Delete Message   Reply w/Quote
I think you could have saved yourself some number crunching (an un-required exponentiation) by doing it left to right:

for i in range(len(somestring)):
# we want to go from left to right
if int(somestring[i]):
result = result * 2 + 1
else
result = result * 2
return result

What can I say, I'm a geek...

IP: Logged

Carrie
unregistered
posted August 02, 2001 10:40           Edit/Delete Message   Reply w/Quote
I can do binary numbers, but what does ASCII start A with? Thanks.

IP: Logged

Tau Zero
BlabberMouth, the Next Generation.

Posts: 1685
From:
Registered: Jan 2000

posted August 02, 2001 11:15     Click Here to See the Profile for Tau Zero     Edit/Delete Message   Reply w/Quote
Capital-A is 41 hex, lower-case a is 61 hex.

IP: Logged

All times are Pacific Time

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | Geek Culture Home Page

� 2002 Geek Culture� All Rights Reserved.

Powered by Infopop www.infopop.com © 2000
Ultimate Bulletin Board 5.47e

homeGeek CultureWebstoreeCards!Forums!Joy of Tech!AY2K!webcam