How to Decrypt XeCryption
If your familiar with HackThisSite you’ll remember the XeCryption from Realistic Mission 6. XeCryption is a fairly basic encryption scheme that deals mainly with an ascii table. Firstly lets take a look at the setup, an encryption box and an encryption password box.
* Begin by typing in the letter ‘a’ into the text box and leave the password blank.
* The encrypted output with this is “.34.33.30″.
* Encrypting the letter ‘a’ again a new number set shows up, “.17.12.68″ Now lets add these numbers together, in both cases we get the number ‘97′.
* Try encrypting the letter ‘b’. You should get ‘98′ when adding the number set together. Now go check out an ascii table. Surprise, surprise, 97 and 98 are the ascii values of a and b respectively.
* Now lets try putting ‘dd’ into the text box and encrypting still leaving the password blank. My output is “.30.20.50.21.53.26″. The ascii value of ‘d’ is ‘100′. Adding each of the two triplets yields ‘100′.
* So it appears as if the algorithm takes the ascii value of the letter and seperates it into 3 numbers totalling that ascii value. Now we can explore the affects of the password on the text.
* Now that I have given you a shove in the right direction I’m going to try and be a bit more vague in my explanation so that I’m not handing it all out.
* Put something very simple in both the text and password areas, what happens?. Now try something a little more complex.
We’ve now discovered in the most basic form how the encryption scheme works, so now how do decrypt that wall of text in realistic 6. If you can program this becomes a lot easier and quicker, even the most basic programming will work. So far I have come up with two methods of finding the text.
* The first way of going about this is probably the longer way. In any given paragraph the ’space’ character is fairly abundunt, so taking this into account you can subtract the ascii value from each of the added triplets and the resulting number would be the password value. You would have to then take this value and subract it from each of the values and output the ascii character equivalent. So you would have to go through each added triplet to do this and there are 366 of these values, so have fun with this method.
* The second method takes a different route by directly attempting to find the password value. The array of added triplets ranges from 750 to ~900. Now lets say the password value is 800, if we subract this from the values to get the ascii characters we end up with some negative numbers. Taking a look a an ascii table the lowest value is 0 for the charater NULL. Taking these two facts into account we can conclude that the highest possible password value is the lowest value in the value array. Taking a second look at the ascii table, the highest possible value is 127. Hmm, how can this help you. This is the method that I used to crack the code, it is pretty quick if you do it correctly.
This is where I leave and you crack a code.
- fun , misc , technology , randomness , geekdom , Programming
- Comments(0)





