Link to home
Start Free TrialLog in
Avatar of dynamicrevolutions
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:
0538031B145A4114474400393F181C145E5747550514347E

Sample Output:
This is a short message.

Note:
The key used in this example is
QPjh4324&ds
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

I can give you an example if you can convince me that this is not your homework.
ASKER CERTIFIED SOLUTION
Avatar of GwynforWeb
GwynforWeb
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dynamicrevolutions
dynamicrevolutions

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