Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-23-2003, 11:31 PM
GrowlZ1010 GrowlZ1010 is offline
defunct
Join Date: May 2002
Posts: 187
GrowlZ1010 is on a distinguished road
A challenge!

The attatched file is a string which I have encrypted using a little encryption script I put together whilst bored. I'd like to see how difficult the algorithm is to crack, so I've taken a text string 183 characters long and run it through the program.

The file looks fairly daunting, and that's probably something to do with the fact that it is. I don't think this will be an easy task, but what the hey! That's the reason I posted this. To see how good the script is.

About the only thing I can tell you is that the original text string is padded based on a user-determined checksum which repeats throughout the string.

Good luck breaking the code, and if enough people show some kind of vague interest in this, I just might post the code that handles encryption and decryption so you can use it yourself.
Attached Files
File Type: txt data.txt (1,010 Bytes, 188 views)
Reply With Quote
  #2  
Old 09-24-2003, 12:49 AM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
Encrypted Code:
NPC Code:

ENC-TxhlAGJipJsjuDl_ YIzPnB_gzikHpZ]QgsanR sWNtVaP Zqn_s|hiuf`RamnXgTPQ_Z^pAf^]Khqll_wevfvpy ItqMSXeMkxD|UsJtiEFHmYXE] kAI^]\Ws`lbt{UfvurjiYHq[nIQgXSufE xxmjIaREedODGV]jAedVEskLsDli_gR[wZn]xetockrdlZDk_OhDo iqbWiyFtPneoeGdKN _sixZ{hKIoHLe\CwCI\rfue_E {__zxZHhaGfo`PTfHwL QkSOttJhy_vEgixjvKF]e^FsemvgIQd cOFek{LxSnOc[\NjriXyVxk^OpkHxqIdXWftSzuaQ^RivBHoKQKM`nq zf_Es`WyoMgyQsQKoxL[p\\tTBZ[g\DeIVtmZ__UO CopbQqpa|exXLtqr]iQEsOBBDagwRSrYVtyRZeUiHHbsj.CNwF {LIJGXKEtWzuWJ[TVA w]ijeFQpANQax|Lg^dhsVwBH Ngo]{WBKuEKTsG]Ldnt{uFSmN{ ooAsFFmmTtBrFGxoi[Bn_IoX^gMwUPhLg`EsVUnFUAR F{ywvqLWkiDtE_uehxs LeFOhlSSdxxpAkxoMEpE^YYtszasnVQJH koDo{UfZp lGjOSrnoleN\`ZHaKc^BHDgnXAmd`cYKAoFms]Nw w\cQfCDjhty]MF\\eiagjbFQIlrVzqadRoVtc|trZIreUhrakQuOs\RhKan`Wb EQnH[SLbCKFaLHbgrsreZOIbdr^ r[JWZovA{dJ[IDwnXGWJ_uj _`yatSGdu KunyT{s|UeaWIrSrYYtZiE^uK-n_loV^]dKKee^O|iTfiiSvcHnLHeSCDcGdWa`bR[W`D Ap_]\NJc[Kxh^uHz\emc_RAAk\`sjueK\u]aZOxgi[amo_[Woqi.dzB CPfD]I[siDKCnrK'kUfLvtWlPXszbOe |NscrKBtJW^hXjscxagtbGdM kofXv{CHuEwbxiqxFPnSBCYv|E?SD`


I give up...
__________________
Reply With Quote
  #3  
Old 09-24-2003, 01:09 AM
faenix faenix is offline
Registered User
Join Date: Jul 2003
Posts: 56
faenix is on a distinguished road
i think this belongs in a different off-topic thread. and who has time to unencrypt that unless theres a benefit from it? hehe
__________________
In a mad world, only the mad are sane.
Reply With Quote
  #4  
Old 09-24-2003, 04:02 AM
MadWolf MadWolf is offline
Beam me up, Scotty.
MadWolf's Avatar
Join Date: Feb 2003
Location: Canada
Posts: 0
MadWolf is on a distinguished road
Send a message via AIM to MadWolf
Quote:
Originally posted by faenix
i think this belongs in a different off-topic thread. and who has time to unencrypt that unless theres a benefit from it? hehe
It's a challenge, not a job.
__________________
Part of the Graal2001 Graphics Team
New account is 'Scott'
Reply With Quote
  #5  
Old 09-24-2003, 06:27 AM
TribulationStaff TribulationStaff is offline
Registered User
Join Date: Jul 2003
Location: Pennsylvania
Posts: 368
TribulationStaff is on a distinguished road
Send a message via AIM to TribulationStaff
I'm not going to even bother unless you tell me something

What SORT of encryption is it?
Single replacement? Sliding replacement? Seed based adjustment?

Sure, its possible to decrypt something on the order of Enigma or Indigo, but even they had some hints. They also had quite a bit more than one bit to work with.

Let's be honest, with only one encrypted string the best anyone around here is gonna get is a single replacement.
__________________


Help me keep scripting
Reply With Quote
  #6  
Old 09-24-2003, 01:34 PM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Unless some other characters represent spaces, I'm guessing you have.. um.. something where not only one letter represents one letter of the decrypted string :x
(i'm not all that great with decryption, the most i've learned how to crack is a simple substitution cipher )

also.. is the "ENC-" at the beginning just outputted by the script at the beginning, or is it an actual part of the encrypted string?
__________________

Reply With Quote
  #7  
Old 09-24-2003, 03:12 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Erm... too hard? You oughta now, how are you gonna decypher it? The only use of encrypting is to pass information to people, and if it's intercepted the interceptors can't read/understand it. So the receivers (unless it's intercepted), must know how to decypher it. I mean, i want to say you this:

Quote:
187h3i54 8533h7434 947450.02 f049i|.|37 r398 1u1 x84384D
But you don't know what it means.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #8  
Old 09-24-2003, 03:19 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by GoZelda
The only use of encrypting is to pass information to people, and if it's intercepted the interceptors can't read/understand it. So the receivers (unless it's intercepted), must know how to decypher it.
Wrong.
__________________
Reply With Quote
  #9  
Old 09-24-2003, 03:22 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Quote:
Originally posted by Kaimetsu


Wrong.
Then, oh great Kaimetsu what is the reason of encrypting? Or do i understand the meaning wrong :X?
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #10  
Old 09-24-2003, 03:48 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by GoZelda
Then, oh great Kaimetsu what is the reason of encrypting? Or do i understand the meaning wrong :X?
You understand the meaning right, but you fail to comprehend the possible applications. Decryption is not always necessary.
__________________
Reply With Quote
  #11  
Old 09-24-2003, 03:52 PM
GrowlZ1010 GrowlZ1010 is offline
defunct
Join Date: May 2002
Posts: 187
GrowlZ1010 is on a distinguished road
Wow, the controversy.

As I said at the start, the original string is just padded with surplus characters. The actual text can be found in there somewhere.

I'll explain further. A user checksum of 1239 would give one real letter, one fake letter, one real letter, two fake letters, one real letter, nine fake letters, one real letter, one fake letter, one real letter, two fake letters, and so on and so forth.

I should post the program, and in fact I will once I get the opportunity. And get on my home computer where the file is stored.
Reply With Quote
  #12  
Old 09-24-2003, 03:59 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by GoZelda

Then, oh great Kaimetsu what is the reason of encrypting? Or do i understand the meaning wrong :X?
Just because he disagrees with you doesn't mean you have to be b*tchy at him
Reply With Quote
  #13  
Old 09-24-2003, 04:29 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Quote:
Originally posted by Python523

Just because he disagrees with you doesn't mean you have to be b*tchy at him
You're right...
Sorry Kai!
But it's your own fault by being so smart >=O
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #14  
Old 09-25-2003, 12:04 AM
GrowlZ1010 GrowlZ1010 is offline
defunct
Join Date: May 2002
Posts: 187
GrowlZ1010 is on a distinguished road
Okay. Time to elaborate some more on this encryption system.

Let's say I have a checksum of one, and the string "Yohi, world!" (the command for the script would be "\encode 1 Yohi, world!"). It will proceed to pad the string through with fake characters, as in the example below:

NPC Code:

(Real characters are in bold.)
ENC-YvoMhliQ,d iwUodrIludI!|



Obviously, a more complex checksum will produce more complex results:

NPC Code:

/*

\encode 127584 Yohi, all you fun forum people!
(Real characters are in bold.)

*/
ENC-YPoSYhYtZiE^uiKn_lo,
V^]KKe^O|iTiaSlvclHLHSCDc
GWa`byR[W`DAp_o]\NJu[Kx
f
^uHz\m_uRAA\`njueK\]aZOxgif
[oaor_[WoqiduzBCPfmD][iDKCr
KkUfpLevWolPXszbOpe|Nscl
rKBJW^Xjescxg!b



The example attatched at the start of this thread uses an eight-digit checksum, the first four digits of which are 1425. It's tricky to crack, but it'll be interesting to see if you can manage it.

The ENC- prefix is just added by the encoding script in all circumstances and is not part of the encrypted text.

Little hints and tips:
  • The random characters range between ASCII values 65 and 124 inclusive, so anything out of that range is guaranteed to be okay.
  • I'm sure you guessed this from the previous hint, but all spaces are correct too.
  • The original string is preserved character-for-character. If you have the right checksum, you'll get the right thing back. If you get gibberish then you're doing something wrong.
  • The first letter in the encoded string - after the ENC- - is always a real letter. For example, in ENC-H4fsdjkhf, the H is guaranteed to be part of the string.

Just as practice, here's a block of encoded data that I've very generously included the checksum for so you can see if you understand the code. The checksum is 1381212 (one real letter, one fake, one real, three fake.. etc) and you can either delete the characters manually or make a script to do it for you. I recommend trying the script. Obviously, whichever way you attempt, you'll need to get rid of the ENC- prefix.

Now that you have a huge wodge of hints, I wish you good luck (again), and happy codebreakin'!

* Edit: I've had some problems using Notepad for this before, but just to point out: there should be no carriage returns (new lines) in the string. If you find some, cut 'em out. Make sure you keep the spaces and things the same, though!
Attached Files
File Type: txt block2.txt (301 Bytes, 173 views)

Last edited by GrowlZ1010; 09-25-2003 at 12:20 AM..
Reply With Quote
  #15  
Old 09-25-2003, 01:13 AM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
It's easy now that you've given that much information... Well... easy to get the second one. All you need is a way to get the checksum on the first and you're set.

The second one is:
"This is a test string. No, you don't win anything. Sit back down and pay attention." ...obviously

I just figured out the first one's checksum as well. The first time through the post, I didn't even see you had given the digit length and the first 4 digits. Anyway, the checksum becomes 14259735 and gives you the string of "This is a simple text string designed to show how this encryption system operates. It pads out strings with lots of random characters based on a user-defined checksum. Isn't that fun?"

I'm not sure if you expected people to be able to create a script to figure out the checksum... as that's rather impossible, since the script won't have a clue what to look for. As for deciphering the string with the correct checksum, I made a script to do that. If you want me to post it, I will.
__________________
Kat

Last edited by -Ramirez-; 09-25-2003 at 01:55 AM..
Reply With Quote
  #16  
Old 09-25-2003, 04:05 AM
Falados Falados is offline
Cucumber NPC
Falados's Avatar
Join Date: Jan 2003
Posts: 141
Falados is on a distinguished road
Send a message via ICQ to Falados Send a message via AIM to Falados
This is a very insecure way of encrypting data =\
Ofcourse you knew that, but try DES or RC# encryption
__________________

subliminal message: 1+1=3
Reply With Quote
  #17  
Old 09-25-2003, 10:41 AM
GrowlZ1010 GrowlZ1010 is offline
defunct
Join Date: May 2002
Posts: 187
GrowlZ1010 is on a distinguished road
Quote:
Originally posted by Falados
This is a very insecure way of encrypting data =\
Ofcourse you knew that, but try DES or RC# encryption
Naturally. They were designed over months, years maybe, by experts, for super-secure communications. This was designed by a high school student in an hour due to boredom.

Quote:
Originally won by -Ramirez-
I'm not sure if you expected people to be able to create a script to figure out the checksum... as that's rather impossible, since the script won't have a clue what to look for.
Oh, no. Codebreaking by any means possible. I just wanted to see how easy it would be.

Quote:
Originally won by -Ramirez-
As for deciphering the string with the correct checksum, I made a script to do that. If you want me to post it, I will.
Sounds good. Let me check it against mine and see how much more efficient yours is.

Just out of interest, how did you get the last four digits of the final checksum, and how hard do you think it would be to get an entire one without any obvious clues or hints?
Reply With Quote
  #18  
Old 09-25-2003, 01:24 PM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
How about posting a new string & no checksum so we can play with it without knowing
__________________

Reply With Quote
  #19  
Old 09-25-2003, 05:30 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally posted by GrowlZ1010
Just out of interest, how did you get the last four digits of the final checksum, and how hard do you think it would be to get an entire one without any obvious clues or hints?
I just looked at the different letters in the sections separated by a space. I put together different word combinations and found which words worked with the previous words I already had from the first four digits. If I hadn't had any of the first four digits, AND the string was completely different, it would have been far more difficult to figure out.

Note that the two strings both start with "This is a". That's what made it easier. :P

Oh, the script. I just made it so I could use it offline pretty easily.
NPC Code:

if (created) setstring this.checksum,14259735;
if (playerchats) {
if (startswith(ENC-,#c)) {
unset this.realstr;
setstring this.str,#e(4,-1,#c);
this.checksumparse = 0;
for (this.a = 0;this.a < strlen(#s(this.str));) {
setstring this.realstr,#s(this.realstr)#e(this.a,1,#s(this.s tr));
this.a += strtofloat(#e(this.checksumparse,1,#s(this.checksu m))) + 1;
this.checksumparse++;
if (this.checksumparse == strlen(#s(this.checksum))) this.checksumparse = 0;
}
message #s(this.realstr);
}
}

__________________
Kat
Reply With Quote
  #20  
Old 09-25-2003, 06:57 PM
GrowlZ1010 GrowlZ1010 is offline
defunct
Join Date: May 2002
Posts: 187
GrowlZ1010 is on a distinguished road
Quote:
Originally posted by -Ramirez-

Note that the two strings both start with "This is a". That's what made it easier. :P
I was going to say "I wonder if anyone'd spot that! " but I may as well be honest. I hadn't noticed that myself. Well spotted.

Quote:
Originally posted by CheeTos2
How about posting a new string & no checksum so we can play with it without knowing
Right you are.

I was originally going to encode and post a paragraph of French about portfolio management, but that struck me as being just too evil. So, instead, I've just extended the ASCII range of random padding to 33 to 126 inclusive.

Find attatched my revised challenge. No hints. You have everything you need to know about the encryption system.
Attached Files
File Type: txt finalchallenge.txt (1.7 KB, 154 views)
Reply With Quote
  #21  
Old 09-25-2003, 08:40 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
You know as well as I do that without any hints whatsoever, it's VERY difficult to get the string.
__________________
Kat
Reply With Quote
  #22  
Old 09-25-2003, 08:59 PM
GrowlZ1010 GrowlZ1010 is offline
defunct
Join Date: May 2002
Posts: 187
GrowlZ1010 is on a distinguished road
Quote:
Originally posted by -Ramirez-
You know as well as I do that without any hints whatsoever, it's VERY difficult to get the string.
Of course. CheeTos wanted a string with no checksum so he can play around without knowing what the answer was, so this is what you'll find in that file.

I'm not sure if it's even possible to break it using any kind of brute force script. So dang many results are possible for that checksum that you could be there all day/year/decade.

Of course, if someone proves me wrong, that'd be funny.
Reply With Quote
  #23  
Old 09-25-2003, 09:02 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
ROFL, I just figured it out. Should I post here, or let CheeTos figure it out first?
__________________
Kat
Reply With Quote
  #24  
Old 09-25-2003, 09:08 PM
GrowlZ1010 GrowlZ1010 is offline
defunct
Join Date: May 2002
Posts: 187
GrowlZ1010 is on a distinguished road
Quote:
Originally posted by -Ramirez-
ROFL, I just figured it out. Should I post here, or let CheeTos figure it out first?
Figures, doesn't it? As soon as I say "I'm not sure it's possible to..", someone does. :P

CheeTos can puzzle it through some more if he wants to.
Reply With Quote
  #25  
Old 09-25-2003, 09:23 PM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
And it didn't even take a day/year/decade.
__________________
Kat
Reply With Quote
  #26  
Old 09-26-2003, 12:39 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by GrowlZ1010

I'm not sure if it's even possible to break it using any kind of brute force script. So dang many results are possible for that checksum that you could be there all day/year/decade.
nothing is unbreakable
Reply With Quote
  #27  
Old 09-26-2003, 12:47 AM
Neoreno Neoreno is offline
Cerebrate
Neoreno's Avatar
Join Date: Aug 2001
Location: England
Posts: 1,663
Neoreno is on a distinguished road
Send a message via AIM to Neoreno
Quote:
Originally posted by Python523


nothing is unbreakable
He didn't say it was.
__________________

Quote:
Exitus Acta Probat: The Outcome Justifies the Deed.
Reply With Quote
  #28  
Old 09-26-2003, 02:42 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Neoreno


He didn't say it was.
um, yea he did, he implied it

Quote:
I'm not sure if it's even possible to break it using any kind of brute force script.
brute forcing is a way to crack something that is encrypted, he was implying the only other way would be to know exactly what the string was before you attempt to 'decrypt' it
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:54 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.