Crypto Game #1

This is for all discussions related to IT and technology. Hardware, software, programming, it all goes here.
Post Reply
Randall
Posts: 1616
Joined: Wed Nov 18, 2015 9:15 am
Species: Funambulus palmarum (Squirrel)
Region: Gauteng

Crypto Game #1

#1

Post by Randall »

You are given the following ciphertext:

Code: Select all

pp$tivwsrw${lsq${i$fvmrk$xs$xlmw$tpegi$evi${ewlih$gpier0$[mrwxsr2$Xli$i|igyxmsr$sj$xlimv$wirxirgiw$mw$vipexmzip}$yrmqtsvxerx2F}$xli$xmqi${i$evi$jmrmwlih${mxl$xliq0$xlivi$mw$rsxlmrk$pijx$fyx$wsvvs{$jsv${lex$xli}$lezi$hsri$erh$pszi$jsv$Fmk$Fvsxliv2Mx$mw$xsyglmrk$xs$wii$ls{$xli}$pszi$Fmk$Fvsxliv2
You are given the following hints:

->4
Julius Caesar
Temp += (byte) shift;

NPR = No programming required, but you can use anything you like to decrypt programatically.

Note: Do not post the solution here, simply reply with "SOLVED" and then in a weeks' time I will present the solution and a new challenge.

Good luck
Last edited by Randall on Tue Feb 16, 2016 1:30 pm, edited 1 time in total.
Leeward
Recalcitrant Ruminant
Posts: 7036
Joined: Wed Mar 19, 2014 10:23 pm

Re: Crypto Game #1

#2

Post by Leeward »

Solved, although I've seen this one before so I don't count this round. :lol:

BTW if you put that cyphertext into a code block it will scroll so that the forum width isn't broken.
Randall
Posts: 1616
Joined: Wed Nov 18, 2015 9:15 am
Species: Funambulus palmarum (Squirrel)
Region: Gauteng

Re: Crypto Game #1

#3

Post by Randall »

Thanks Leeward. edited my post :)
Leeward
Recalcitrant Ruminant
Posts: 7036
Joined: Wed Mar 19, 2014 10:23 pm

Re: Crypto Game #1

#4

Post by Leeward »

Huh, I guess it doesn't. Oh well.
User avatar
Adagio
Warm Hearted
Posts: 3589
Joined: Tue Feb 07, 2012 7:06 am
Gender: Male
Sexual preference: Other
Species: Snow Leopard
Region: Gauteng
Location: Pretoria, Silverton
Contact:

Re: Crypto Game #1

#5

Post by Adagio »

Solved! But I have the same problem as Lee...
Randall
Posts: 1616
Joined: Wed Nov 18, 2015 9:15 am
Species: Funambulus palmarum (Squirrel)
Region: Gauteng

Re: Crypto Game #1

#6

Post by Randall »

Solution:

Each character is treated as an 8-bit ASCII value.
The clue of ->4 implies a shift of four. This is not a rotate, but means the values were adjusted by 4.

During encoding, the values were adjusted by 4
Therefor ASCII A (0x41) becomes ASCII E (0x45)

To decode, you SUBTRACT four, from each character.
The following Java code works for this...

Code: Select all

78          stringbytes = UserInput.getBytes(); // Convert the string into its constituent bytes
79          byte temp;
80          for (int i = 0; i < UserInput.length(); i++){
81                temp = (byte)stringbytes[i];
82                temp -= (byte)shift;
83                stringbytes[i] = (byte)temp;
84          }
The decoded message is thus a quote from George Orwell's 1984
All persons whom we bring to this place are washed clean Winston. The execution of their sentences is relatively unimportant. By the time we have finished with them there is nothing left in them but sorrow for what they have done and love for Big Brother. It is touching to see how they love Big Brother.
Post Reply