ASCII DECRYPTION

  • AUTHOR: // CATEGORY: codeeval, codeeval / hard, php, ranking

    You are an analyst at the Central Intelligence Agency, and you have intercepted a top secret encrypted message which contains numbers. Each number is obtained by taking an ASCII code of the original character and adding some unknown constant N.

    For example, you can encrypt the word ‘test’ with the condition that N = 11.

    ‘test’ to ASCII -> 116 101 115 116 -> add N to each number-> 127 112 126 127

    Based on previous intelligence reports, you know that the original message includes two identical words consisting of X characters and you know the last letter in the word.

    Your challenge is to decrypt the message.

     

COMMENTS

0 Responses to ASCII Decryption