Didactic Feedback Cipher Long 3

stabat
Posts: 5
Joined: Sat Oct 10, 2009 2:55 am
Location: Denmark

Post by stabat »

That depends entirely on the compiler used. In my environment sizeof(long) is 4 bytes. You should use a long long if you want a guaranteed size of at least 8.
even if I reply one year later, I have to say that it depends on the computer architecture the compiler runs on, and not from the compiler itself ;)
User avatar
laz0r
Posts: 290
Joined: Thu Feb 04, 2010 4:18 pm
Location: Within the depths of Unix

Post by laz0r »

Can someone confirm for me that:

16908034*33489918 + 84606743 == 118096409 in this endianness?
There is no spoon.
User avatar
laz0r
Posts: 290
Joined: Thu Feb 04, 2010 4:18 pm
Location: Within the depths of Unix

Post by laz0r »

*bump* - another candidate I get is 67633157 for the answer to my question above.
There is no spoon.
User avatar
dangermouse
Posts: 89
Joined: Sun Jun 05, 2011 8:14 pm
Location: deep space computing AG
Contact:

Post by dangermouse »

if you are using Python, you can probably solve the challenge straight away. But in my case I was using Freepascal, and the problem was the multiplication (not the modulo thing) which overflowed differently. This bignum library helped:
http://home.netsurf.de/wolfgang.ehrhardt/mp_intro.html

:-)
AMindForeverVoyaging
Forum Admin
Posts: 496
Joined: Sat May 28, 2011 9:14 am
Location: Germany

Post by AMindForeverVoyaging »

dangermouse wrote:if you are using Python, you can probably solve the challenge straight away.
Python has built-in support for hacker.org Didactic challenges? That's seriously cool! ;)
brahim
Posts: 1
Joined: Fri Jul 24, 2009 12:47 pm

Post by brahim »

Hello

Are all characters in the plaintext ASCII (7 bits)?
User avatar
dangermouse
Posts: 89
Joined: Sun Jun 05, 2011 8:14 pm
Location: deep space computing AG
Contact:

Post by dangermouse »

Yes, all ASCII are below 128 and represent normal chars. No crazy char in there as usual.
User avatar
Isaev
Posts: 39
Joined: Tue Dec 16, 2008 11:23 pm
Location: Germany

Post by Isaev »

And what means (txt -> txt[i + 3]) ? more precisely -> :?
SemmZemm
Posts: 5
Joined: Sun Apr 20, 2014 9:18 pm
Location: France, Russia

The length of the string

Post by SemmZemm »

Encoded string is 220 symbols length = 110 bytes, not divisible by 4. Where did last 2 bytes (b40e) come?
mickeyandkaka
Posts: 1
Joined: Thu Apr 24, 2014 4:02 am

Post by mickeyandkaka »

test
I just want to see my uid
Post Reply