How to programming Xor calculator hex base 16 in java? : How to programming Xor calculator java for hexadecimal base 16 in java like in the screenshot shown below. The first input is the key and thee second input is the string, the third one is the output. Actually I tried a lot of scripts and I googled the issue but the result is not coming true like in this calculators. Please Help. 
[online xor calculator][1]
[windows programmer calculator][2]


  [1]: https://i.stack.imgur.com/cgZ0M.png
  [2]: https://i.stack.imgur.com/fMUaP.png