r/AskProgramming • • Dec 10 '22

Other What does this binary code mean?

EDIT: As one user suggested, I am trying my best now also at r/whatisthisthing

LINK here

 

Hello everyone,

 

yesterday I visited my grandparents and in the middle of the visit, I went for a walk with my grandma. She lead me to this BIG (about 2x3 meters) sandstone slab in the front of a house, which seems to stand there for months or even years now. My grandma said, she is wondering for a long time now, what the numbers on the slab mean. I looked at it and told her, that is seems to be binary code and in short, how binary code works. Later that day when leaving my grandparents, I told my grandma that I will look up, what the slab actually says.

 

If you want a look at it, I found this hiking (?) website with a few pictures. LINK

I wrote down the whole code and put it in a translator from this website. LINK

 

I used every encoding option there, but unfortuantely I got nothing useful out of it.

So now I am wondering:

  • Did I use the website wrong?

  • Is it not binary but something else maybe?

  • What did I miss here?

 

Thank you :)

 

Here is the code written down:

00101101 01001111 10110001 01111101 01000010 11000110 01011111 11111001

01110110 00010100 11111101 10010111 10101111 11010100 11001001 11001100

11101001 11110000 00111010 10111100 00110011 00111001 10111011 00000001

10001111 10000101 11101111 10101010 11010000 01111000 00110110 11010101

11011000 01101100 10101000 10001001 00101001 00000000 11110011 10011111

11001010 10010000 00100000 10101101 11111000 01000011 01000100 10001011

11111100 00000011 11111111 00000010 10100011 10110000 01011001 00110100

10001100 01100011 11011111 11010111 11100111 10000001 00001011 11110101

10110100 11111011 01111100 00100001 10101100 11101011 11101010 11011100

01010000 01100111 11000001 00100110 00100100 11001111 00001100 00110000

11001000 00100010 01001010 11100010 01011010 00110111 10110110 01101111

10010101 10001110 00001000 01110111 10110111 10011011 11011110 10110101

01011110 11110111 11110100 01101000 10111110 00011100 00101000 01001001

10001010 01000000 10011100 01001110 10101011 01010111 01110011 10011001

01000111 10111111 01111111 01000101 10111101 01111110 10101110 00000110

10001000 00011001 00000101 00011011 00001111 10110011 00111110 00111111

00110001 11001110 00101010 00111011 01001000 01011100 01001100 10011110

00010101 01011000 11000100 00000111 10000111 11110110 01010100 10100010

10111001 00111000 10100000 00100011 00011010 01110001 00010000 11101110

01010011 10010110 00101011 00110010 10100111 00010111 00100111 11010110

00010010 01011101 01110100 11100000 10011000 01101110 10000000 01101011

11101101 11000000 11100001 10111000 01100000 01010001 10101001 11011101

10111010 10001101 01000001 00011110 00011111 11100110 01100001 00101110

10100101 01100101 01001011 11111010 01110000 00101111 00001001 01111010

10010010 01111001 11010010 01010110 11011001 10000110 11010011 11111110

01110101 11000111 11100101 10000100 11110001 00001100 00010110 00101100

10000011 00010011 01101010 01101001 11000011 11011010 10010100 00011000

01011011 00001010 11000101 00010001 10011101 11010001 01101101 00011101

11101100 00001110 11110010 10110010 11000010 11001101 00000100 10100100

01010010 01001101 01100110 00111101 11101000 10011010 01010101 11100100

11100011 01100100 00110101 10010001 10100001 01100010 01000110 10000010

11011011 00111100 10010011 00100101 10100110 01111011 11001011 01110010

64 Upvotes

69 comments sorted by

20

u/hi65435 Dec 10 '22 edited Dec 10 '22

It's 256 8-byte binaries, in fact they are all (edit: almost) unique and appear once from 00000000, 00000001, .... to 11111110, 11111111

No crypto expert but I guess it's fair to call this a permutation

Decimals:

https://pastebin.com/k12zjknd

edit: only exception are 00001100 (12) and 11000100 (196) which each appear twice

https://pastebin.com/aLCnkXyW

edit2: and missing are 00001101 (13) and 11001100 (204)

8

u/PooSham Dec 10 '22

OP messed up a bit. First 11000100 is actually 11001100 (rightmost on second row). So the only duplicate is 00001100 and the only missing is 00001101. Seems like one of the duplicates got the last bit off.

2

u/Black_Werwulf Dec 11 '22

Thank you for pointing out. Changed 11000100 to 11001100 :)

3

u/Black_Werwulf Dec 11 '22

11000100 is not twice, because I made an error writing it down. It is actually the missing 11001100. Fixed it now. But the other one is interestinly still twice.

14

u/CharacterUse Dec 10 '22

plausibly the two duplicates are transcription errors from the missing ones, they're both off by one bit.

11

u/port443 Dec 10 '22

With it being 256 unique numbers (I agree on the transcription errors), I find it likely to be that the binary means "nothing".

Even with encryption, you aren't going to encrypt something into "perfect" entropy. An encryption key usually represents prime numbers, again those won't be completely unique values for all 256 bits.

3

u/hi65435 Dec 10 '22

It's like on the picture actually

11

u/CharacterUse Dec 10 '22

I mean on the original stone. It's quite common for things like this to have occasional errors, for example th (decipehered bits of) KRYPTOS have them. It's hard to avoid when giving a long string of characters without apparent meaning to a stone cutter or some other craftsman to duplicate.

7

u/beingsubmitted Dec 10 '22 edited Dec 11 '22

I think the most likely reason to have a series of consecutive unique values would be an index.

My guess is this is a Cypher key. Somewhere else there are 256 characters all jumbled up. You rearrange them in this order.

EDIT: Per suggestion, I measured the permutational entropy as very high at .997, suggesting that the order of these numbers is highly random, and very unlikely to have encoded info. I'm really leaning toward this being a cipher key, whereby multiple parties could encode and decode messages.

4

u/Sidneys1 Dec 11 '22

This is an interesting theory. Let's assume the duplicates are all transcription errors and this really is all 256 unique bytes.

What is the entropy of the ordering? If the entropy is high (random shuffle) I'd say that's a point towards this being a Cypher key.

If the entropy is low... (non-random) I'd say it's more likely that the ordering of the numbers is in some form the data being hidden.

2

u/beingsubmitted Dec 11 '22

Smart. I'm no expert, but I used the ordpy package for permutational entropy (other entropy measures would have been weird given the input) and got .997 - very high. A random shuffle via numpy random shuffle gave .998 on the same measure.

16

u/PooSham Dec 10 '22

This is very interesting, it's a shame this community is so inactive that it might pass by unnoticed for many.

Did I use the website wrong?

I don't think so, my first reaction would also be to test all possible encodings on that site.

Is it not binary but something else maybe?

It's quite clearly binary

What did I miss here?

Just because it's binary doesn't mean it's an encoded text. It could be a CPU instruction set. I would recommend converting these to hexadecimal and compare to OP codes of different CPUs. Actually, I will do that in a small moment.

Whatever you do, don't create a binary executable with this and run it unless you know what it does.

11

u/YMK1234 Dec 10 '22

Running a quick analysis on it, it definitely seems to be something encoded to me, and not with some trivial substitution cipher either. There is only two bytes duplicate, all the rest is unique.

from collections import defaultdict

result = defaultdict(int)
for key in input.split(" "):
    result[key] += 1

for key in result.keys():
    print(key + ": " + str(result[key]))

print("length: " + str(len(result)))

results in

[...]
01111011: 1
11001011: 1
01110010: 1
length: 254

1

u/Black_Werwulf Dec 11 '22

From two duplicates, I fixed my mistake and changed 11000100 to 11001100. But 00001100 is still twice there.

2

u/PooSham Dec 10 '22

I followed this path a bit. The numbers that don't appear are 0D and CC. The duplicates are C4 and 0C. Those code doesn't translate to ASCII though :/

5

u/Black_Werwulf Dec 10 '22

Thank you for your answer.

If I translate it to hex, it says this:

2D4FB17D42C65FF97614FD97AFD4C9C4E9F03ABC3339BB018F85EFAAD07836D5D86CA8892900F39FCA9020ADF843448BFC03FF02A3B059348C63DFD7E7810BF5B4FB7C21ACEBEADC5067C12624CF0C30C8224AE25A37B66F958E0877B79BDEB55EF7F468BE1C28498A409C4EAB57739947BF7F45BD7EAE068819051B0FB33E3F31CE2A3B485C4C9E1558C40787F654A2B938A0231A7110EE53962B32A71727D6125D74E0986E806BEDC0E1B86051A9DDBA8D411E1FE6612EA5654BFA702F097A9279D256D986D3FE75C7E584F10C162C83136A69C3DA94185B0AC5119DD16D1DEC0EF2B2C2CD04A4524D663DE89A55E4E3643591A1624682DB3C9325A67BCB72

I thought about chess (like a famous round), but there are some 0 in it, so that doesn't work.

5

u/PooSham Dec 10 '22

I thought about chess (like a famous round), but there are some 0 in it, so that doesn't work.

Heh, yeah no. There are also 9s and no G or H, so that wouldn't work.

I tried to disassembly it to different CPUs, but none gave me a satisfying result.

As noted by others, this is 256 (28 ) bytes. So it definitely seems like an encryption key or something. I hoped for a cryptocurrency private key or something, but I don't know of any cryptocurrency with 256 bytes long private keys.

3

u/Black_Werwulf Dec 10 '22

Mh, I see. Unfortunate. Maybe I have to ask my grandma to ring at the owners house next time :D

7

u/[deleted] Dec 10 '22 edited Dec 10 '22

[removed] — view removed comment

6

u/Black_Werwulf Dec 10 '22

This confiused me too. With 1 Byte you can write 256 values. When you look at the pictures, the big slab has 8 columns and 32 rows = 256 Bytes.

3

u/PooSham Dec 10 '22

Yes, you can represent 256 values with 1 byte. It's somewhat a coincidence that this is 256 bytes though I think, it's just common to make things a power of 2.

6

u/CharacterUse Dec 10 '22

this is exactly 512 bytes long

*256

3

u/[deleted] Dec 10 '22

[removed] — view removed comment

1

u/Black_Werwulf Dec 11 '22

Cool idea. Unfortunately after spliting it into 6-pairs, I get 85x 6-pairs and the last 72-value, so no round pair number.

4

u/CharacterUse Dec 10 '22

FWIW, flipping the bit order doesn't result in anything which looks meaningful, neither does converting it to a bitmap or graymap image, neither does doing both.

3

u/Black_Werwulf Dec 10 '22

Instead of reading it row wise from top left to top right, I also tried to read it column wise. Also didn't work :D

1

u/gerciuz Dec 10 '22

RemindMe! 24 hours

1

u/PooSham Dec 10 '22

I'm sad to tell you that I tried dissassembling with all major CPUs, using both big and small endian, but it didn't work.

1

u/Black_Werwulf Dec 10 '22

Too bad, but thank you for trying! :D

1

u/gerciuz Dec 10 '22

Well, that's a bummer.

1

u/RemindMeBot Dec 10 '22 edited Dec 10 '22

I will be messaging you in 1 day on 2022-12-11 15:31:25 UTC to remind you of this link

1 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback

12

u/hugthemachines Dec 10 '22

I think the best way to find out is to go a different path. Make a post in r/whatisthisthing with pictures and a description of the location. I think it will take about 15 minutes to get a solution :-)

1

u/Black_Werwulf Dec 11 '22 edited Dec 11 '22

Thank you for the idea. I posted it now also THERE

1

u/hugthemachines Dec 11 '22

Nice, I hope you get some nice responses.

5

u/PooSham Dec 10 '22

I pondered a bit about which subreddit would be the best. r/cipher is too small, r/math doesn't seem to do a lot of problem solving, etc. Maybe r/whatisthisthing is the right place for this.

5

u/hugthemachines Dec 10 '22

The problem is that the numbers mean nothing to anyone without context. Ascii is quite common when people want to use binary to make a simple "hidden message" but now we have no context.

1

u/PooSham Dec 10 '22

Yep, but with crypto analysis it may be possible to decipher something. Maybe the fact that it's in Stein, Netherlands may be a clue.

4

u/CharacterUse Dec 10 '22

it's in Stein, Netherlands

"Binärcode in Stein" means "binary code on stone" in German, OP linked to the Dutch version of the website. The location is a suburb south-east of Dresden, in Germany.

1

u/PooSham Dec 10 '22

Ah, good point.

1

u/5ucur Dec 11 '22

How about r/codes? Seems to have posts of a similar nature.

10

u/hugthemachines Dec 10 '22

Remember, binary is just numbers. It is not binary code just because it is binary numbers. If you, for example, find out the ascii characters for those numbers, it looks a bit messy, rather than a sentence. Some characters are not printable so they show up weird when pasted.

-O±}BÆ_ùvý—¯ÔÉÄéð:¼39»…ïªÐx6ÕØl¨‰) óŸÊ ­øCD‹üÿ£°Y4Œcß×ç õ´û|!¬ëêÜPgÁ&$Ï 0È"JâZ7¶o•w·›Þµ÷ôh¾(IŠ@œN«Ws™G¿E½~®ˆ³>?1Î*;H\LžXćöT¢¹8 #qîS–+2§'Ö]tà˜n€kíÀá¸`Q©ÝºAæa.¥eKúp/ z’yÒVنÓþuÇå„ñ ,ƒjiÃڔ[ ŝÑmìò²ÂͤRMf=èšUäãd5‘¡bF‚Û<“%¦{Ër

8

u/[deleted] Dec 11 '22

[removed] — view removed comment

0

u/hugthemachines Dec 11 '22

Ok, I tried using this code to show the characters. However, the english alphabet is the same in ascii and unicode so if it was a sentence it would still show.

for item in content:
    character = chr(int(item,2))
    output.append(character)

output = "".join(output)

print(output)

1

u/[deleted] Dec 11 '22

[removed] — view removed comment

1

u/hugthemachines Dec 11 '22

What do you mean by I haven't handled them the same? Of course I handled them the same. You can see the code used.

The characters that fit in ASCII are still shown. I even checked a few against this web site now and it is clear that they match the ASCII characters. The ones that may be something other than standard ASCI are not regular a-z characters anyway so that rules out the hidden info being a sentence of ascii characters even if some characters printed are not in the ASCII table.

Here are the beginning binary numbers I compared to the ascii table manually. As you can clearly see. The characters existing in ASCII does show up correctly, proving it is not a sentence of ASCII characters but some other type of information.

00101101        -
01001111        O
10110001        Not found in standard ASCII
01111101        }

1

u/[deleted] Dec 11 '22

[removed] — view removed comment

1

u/hugthemachines Dec 11 '22

But what I’m assuming you’ve done is you’ve looked at 4 bytes at a time, which gives you some kind of Unicode character, whereas just the raw ascii would only be 1 byte at a time. If you were only looking at 1 byte at a time it would only return standard ascii values and no special characters like the ones in your original comment.

Nope, I made a list out of all the 8bit binary numbers, walked through the list and for each 8 bit binary number I let python convert the base 2 (binary) number to integer and convert that to a character. Now the highest value in the standard ASCII table is 127 so for example "10110001" which is 177 is outside of that.

Did you not know standard ASCII only has 127 numbers in it?

1

u/hi65435 Dec 12 '22

That's interesting actually, also considering that the only duplicate is C0. The data can be split into:

=== 78 (0x4e) bytes ===

2D4FB17D 42C65FF9 ... 5067C126 24CF

C0 (not counted)

=== 126 (0x7e) bytes ===

30C8224A E25A37B6 ... FE75C7E5 84F1

C0 (not counted)

=== 50 (0x32) bytes ===

162C8313 ... 9325A67B CB72

So the position of C0 doesn't seem completely random and including it makes a 128 bytes block in the middle

6

u/danpietsch Dec 10 '22

in the front of a house

Where? Does the house have historical significance? Does the town?

she is wondering for a long time now

How long? Five years? Fifty? The dates would impact what kind of encoding existed (e.g. UNICODE didn't exist 50 years ago).

4

u/CharacterUse Dec 10 '22

Where? Does the house have historical significance? Does the town?

the location is given on the hiking webstie, Heidenau-Großsedlitz in Saxony (SE of Dresden). The street itself doesn't seem particularly remarkable, but OP's grandmother might know some local information which is not obvious to the causal internet searcher. There is a large historical palace complex not far away (the area's main claim to fame) but that doesn't seem related in any way.

5

u/shitty_writer_prob Dec 10 '22

There isn't a clear pattern to it; it's not repetitive, which means it's not likely ASCII instructions. It could be a permutation like that one person said.

It could also be:

  • Some digits of PI or another constant

  • A list of someone's

  • Numbers the sculptor thought looked cool/some kind of artistic pattern of 1s and 0s with no mathematical significance

  • Numbers of personal significance, like birthdays of grandchildren

  • Numbers of a sports team (8 bits would be high for that)

But basically, you've gotten all of the information this subreddit can give you and it's time to ask people with a different skillset. That is an expensive rock that was probably paid for by some foundation so I would ask around your local area and see if you can find out what it says.

But yeah--without that it's just a list of numbers. Really cool though and I'm excited for an update.

!RemindMe 1 month

4

u/lunetick Dec 11 '22

Fbi is searching new crypto talent

1

u/[deleted] Dec 28 '22

If they're reading these comments they're not finding any. :-)

2

u/A_Philosophical_Cat Dec 11 '22

Since it seems to just be a random ordering of all the 8-bit bytes (assuming transcription error for the duplicate-missing pair), it's unlikely that the values themselves encode any useful information.

Instead, any meaningful information would be encoded in either the order, or in conjunction with some other, lower entropy data ( and maybe this gets used as a cipher key of some kind)

1

u/Gambit2422 Dec 10 '22

RemindMe! 27 hours

1

u/rockefeller22 Dec 10 '22

RemindMe! 24 hours

1

u/Eivyses Dec 10 '22

RemindMe! 2 days

1

u/undergroundhobbit Dec 10 '22

!RemindMe 2 days

1

u/coldWire79 Dec 10 '22

!RemindMe 2 days

1

u/yeti_seer Dec 11 '22

Has anyone tried running this recursively through any hash solvers? Like run the binary through, then take whatever the output is and run it through again, how many times i’m not sure, but maybe worth a shot. I will try later

1

u/Mean-Ad-7590 Dec 11 '22

RemindMe! 24 hours

-2

u/[deleted] Dec 11 '22

It’s probably an encoded link to this:

https://youtu.be/dQw4w9WgXcQ

1

u/[deleted] Dec 10 '22

[removed] — view removed comment

3

u/[deleted] Dec 10 '22

[removed] — view removed comment

1

u/5ucur Dec 11 '22 edited Dec 11 '22

They are close in binary, one position off. Here's the input to and output from Python:
>>> bin(196)
'0b11000100'
>>> bin(204)
'0b11001100'

The interesting part to me is that the numbers in the whole code aren't in order.

3

u/[deleted] Dec 11 '22

[removed] — view removed comment

3

u/CharacterUse Dec 11 '22

Well, it's working.