Didactic Scrambled Egg Cipher Pre-Warmup Challenge

snibril
Posts: 31
Joined: Sun Oct 26, 2008 11:18 pm

Didactic Scrambled Egg Cipher Pre-Warmup Challenge

Post by snibril »

I think there is an error in the line
eggs ^= (key[eggs&0x4]<<8);
It should be
eggs ^= (key[eggs&0x3]<<8); ?
macz
Posts: 5
Joined: Sat Oct 25, 2008 11:12 am

Post by macz »

yes i think the same
looks like an error
MerickOWA
Posts: 182
Joined: Mon Apr 07, 2008 5:54 pm
Location: HkRkoz al KuwaiT 2019 HaCkEr 101

Post by MerickOWA »

Seems to be more wrong than that.

The few bits which are easily determined in the key are not consistent... or the encrypted data is not text. I'm betting on the former.
tails
Posts: 191
Joined: Tue Jun 10, 2008 7:51 pm
Location: Tokyo

Post by tails »

Yes. It seems there is a problem in this challenge. Although it's actually solvable, it cannot be as adum intends. I've pointed out the problem on solvers forum, so we might better wait until it get fixed. I can't write the details here because it would spoil the challenge.
User avatar
adum
Posts: 392
Joined: Thu Apr 19, 2007 12:49 pm
Contact:

Post by adum »

i think i've fixed it and uploaded a new version. please let me know if i messed up again...
snibril
Posts: 31
Joined: Sun Oct 26, 2008 11:18 pm

Post by snibril »

Works now.
cafelatte
Posts: 3
Joined: Mon Oct 27, 2008 8:00 pm

Post by cafelatte »

(Puzzled) i worked some time on one with a 16-byte-key and ...(key[eggs&0xF]<<8);...
has that been substituted?
tails
Posts: 191
Joined: Tue Jun 10, 2008 7:51 pm
Location: Tokyo

Post by tails »

cafelatte wrote:(Puzzled) i worked some time on one with a 16-byte-key and ...(key[eggs&0xF]<<8);...
has that been substituted?
Now there are (at least) three versions:
- Didactic Scrambled Egg Cipher
- Didactic Scrambled Egg Cipher Warmup
- Didactic Scrambled Egg Cipher Pre-Warmup

And we have to solve them in the reverse order of their appearance. You have been working on the first one, but now you have to solve Pre-Warmup and Warmup beforehand.
User avatar
m!nus
Posts: 202
Joined: Sat Jul 28, 2007 6:49 pm
Location: Germany

Post by m!nus »

eggs ^= (key[eggs&0x3]<<8);

does the key[..] only pick one byte?
doesn't it in combination with <<8 make the the value eggs gets XORed with 0x0000??00 then?
ghostbear
Posts: 1
Joined: Fri Oct 31, 2008 10:33 am

Post by ghostbear »

Code: Select all

eggs ^= (key[eggs&0x3]<<8);

reads as:

Code: Select all

eggs = eggs ^ ( key[eggs&0x3] << 8 )
also remember that key is an array with 4 bytes, so the term picks one of the 4 bytes and shifts that by 8 (so it masks the middle of the 3-byte tuple of plain text characters).




no, i have not yet solved this one...
cutter
Posts: 17
Joined: Mon Jan 12, 2009 12:50 pm

Post by cutter »

i have just one question:

does " for (int eggs = {each 3-byte tuple in plaintext}) " mean that i should consider 000102, 030405 ,060708 for the plaintext 00010203040506070809 in hex?
nighthalk
Posts: 41
Joined: Fri Jul 31, 2009 8:22 pm

Post by nighthalk »

i doubt its actually "plain text" or that would be one hell of a coincidence to come out as perfect hex only characters after encryption, my only question is what eidean is this? is it going from 382d817119a1
-> 0x38 + 0x2d<<8 + 0x81 << 0x10
or 0x81 + 0x2d<<8 + 0x38<<0x10
Zeta
Posts: 62
Joined: Thu Apr 16, 2009 3:37 pm

Post by Zeta »

It's the first.
satfreak666
Posts: 11
Joined: Mon May 16, 2011 8:37 am

Post by satfreak666 »

Hi there,

I'm a little confused about this challange.

As posted above, the encoding of the byte-sequence is Little-Endian. Can someone confirm, that encoding the message:

This is a secret message

with the key "0x11, 0x12, 0x13, 0x14"

will output

"2eafc48a26248a2625402cc4c8aca52a264528ec26a8aee5"

I can encode/decode it without any problems.

But brute forcing the challange-message produces no output. Is the decrypted message plain Text?
User avatar
laz0r
Posts: 290
Joined: Thu Feb 04, 2010 4:18 pm
Location: Within the depths of Unix

Post by laz0r »

I make it "53454953c39851c39833420a13463a52c3a0b6c65a", but then I haven't actually solved the challenge successfully yet so this may well be wrong.
There is no spoon.
Post Reply