fork download
  1. import java.util. *;
  2. import java.lang. *;
  3. import java.io. *;
  4. import java.io.PrintStream;
  5. import java.math.BigInteger;
  6.  
  7. class Ideone
  8. {
  9. static String XOR (String _str_one, String _str_two) {
  10. BigInteger i1 = new BigInteger (_str_one, 16);
  11. BigInteger i2 = new BigInteger (_str_two, 16);
  12. BigInteger res = i1.xor (i2);
  13. String result = res.toString (16);
  14. return result;
  15. }
  16. public static void main (String [] args) throws java.lang.Exception
  17. {
  18. String str_one = "4b64ca12ace755516c178f72d05d7061";
  19. String str_two = "ecd44646cfe5994ebeb35bf922e25dba";
  20. String answer = XOR (str_one, str_two);
  21. System.out.println ("your flag is:" + answer);
  22.  
  23. }
  24. }
Success #stdin #stdout 0.08s 380224KB
stdin
Standard input is empty
stdout
your flag is:a7b08c546302cc1fd2a4d48bf2bf2ddb