dynamicrevolutions
asked on
XOR Encryption
Problem Specification
A message in English is encrypted using XOR-encryption. The input is the encrypted message. The output should be the original plaintext message. It is known that the length of the key used is less than 100 characters. Also, the encrypted message is represented in hexadecimal format. Come out the solution for the sample question and answer.Help !
Example
Sample Input:
0538031B145A4114474400393F 181C145E57 4755051434 7E
Sample Output:
This is a short message.
Note:
The key used in this example is
QPjh4324&ds
A message in English is encrypted using XOR-encryption. The input is the encrypted message. The output should be the original plaintext message. It is known that the length of the key used is less than 100 characters. Also, the encrypted message is represented in hexadecimal format. Come out the solution for the sample question and answer.Help !
Example
Sample Input:
0538031B145A4114474400393F
Sample Output:
This is a short message.
Note:
The key used in this example is
QPjh4324&ds
I can give you an example if you can convince me that this is not your homework.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks. gave me some insights about XOR. one question, is it possible to decrypt it without knowing the key? but knowing the output it plain a-Z and length of key is less than 100. technically is it possible?thanks