How do you escape the prison?

You are a wrongly-accused prisoner in a high-security prison, where you have been sentenced for life. However, one of the guards believes your story, and has given you a single chance to escape. He has told you that there is a special word you can say to the man at the gate, and he will gladly open the way out for you. The same day, you found a cryptic bit of paper underneath your bed. The paper reads as follows:

47697665206d652035210d0a0d0a2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2f2f2f2f2b2b2b2b2b2b2b2b2f2f2f2f0d0a2f2b2b2b2b2b2b2b2b2b2f2b2b2b2b2b2b2b2b2b2b2b2b2b2f2b2b2b2b2f2d2f2f2f2f2a2f0d0a2e2f2d2d2d2e2b2b2b2b2b2b2b2e2e2b2b2b2e2f2e2f2f2f2f2f2f2b2b2b2b2b2b2b2b2b2b2b2b2b2b2b2e2f2e2b2b2b2e2d2d2d2d2d2d2e2d2d2d2d2d2d2d2d2e2f2b2e0d0a0d0a49276d20737475636b206f6e207468652066656e6365206265747765656e203320747261696e20747261636b73210d0a0d0a546774203368402e682072333167707635746577792e33336e4020202e


You realise this must be the guard trying to give you a clue of how to escape, or what the secret word is, but you have no idea what it means. You also know that the man at the gate will not hesitate to kill anyone who speaks the incorrect password.

You get one shot at this, so you walk up to the gatekeeper. What should you say to him?

To finish off the great work done by ABcDexter and f''

You should say to the guard:

Hello World!

These lines:

Give me 5!
-----------------------------------////++++++++////
/+++++++++/+++++++++++++/++++/-////*/
./---.+++++++..+++././/////+++++++++++++++./.+++.------.--------./+.

Are a hint to use the:

Esoteric programming language HighFive

I wrote the following interpreter:

#include <iostream>
using namespace std;

string s;
int a[256][5], seg, ptr, lastmod;

int main() {
cin >> s;
for(int i = 0; i < s.size(); i++) {
if(s[i] == '+') {
a[seg][ptr]++;
lastmod = a[seg][ptr];
}
else if(s[i] == '-') {
a[seg][ptr]--;
lastmod = a[seg][ptr];
}
else if(s[i] == '/')
ptr = (ptr + 1) % 8;
else if(s[i] == '*') {
if(lastmod != 0) {
i += a[seg][ptr];
i--;
}
}
else if(s[i] == '.')
cout << (char)a[seg][ptr];
else
cout << "oops" << endl;
}
cout << endl;
}


It's not exactly accurate as the memory size of int is bigger than a byte, but for this purpose it's ok.

• Took me the longest time to figure out how the '*' worked. Once I figured out it was keeping an extra variable for the last modified value, then I had it. – LeppyR64 Jun 10 '16 at 15:40
• I did the segmenting wrong. Oh well. When I get some time I might update it. – LeppyR64 Jun 10 '16 at 16:07
• ... Well now I don't understand how OP said the answer is one word yet still accepted this? – feelinferrety Jun 11 '16 at 3:50
• @feelinferrety It's possible that he didn't execute the code segment that he copied from the Wiki page. The caption for it is HELLO. – LeppyR64 Jun 11 '16 at 3:52
• @feelinferrety I was going to answer with that but my inner-nerd took over and saw that there were more than 5 full stops in the code. – LeppyR64 Jun 11 '16 at 3:57

A simple

HEX to ASCII

conversion shows this

Give me 5!
-----------------------------------////++++++++////
/+++++++++/+++++++++++++/++++/-////*/
./---.+++++++..+++././/////+++++++++++++++./.+++.------.--------./+.
I'm stuck on the fence between 3 train tracks!
Tgt 3h@.h r31gpv5tewy.33n@ .

There is hint of Rail fence cipher

in this

I'm stuck on the fence between 3 train tracks!

In this

I used the rail fence decoder and with 3 as the key

The result is:

..Th3 gr33t1ng p@v35 the w@y.

As in the first line Give me 5! as high-five, but here it's $5!$ i.e. $120$.
So, I will say 120 or just give a high-five.

• I suggest you look at the Hex to ASCII more closely, it isn't that simple. – George Gibson Jun 9 '16 at 14:52
• Also, the guard said that it was a single word... – George Gibson Jun 9 '16 at 14:53
• Nope, it's one word. – George Gibson Jun 9 '16 at 14:54
• "fence" and "train tracks" is an obvious clue for a railfence cipher. – f'' Jun 9 '16 at 15:07
• – George Gibson Jun 9 '16 at 15:41