document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. import sys
  2. import base64
  3.  
  4. flag = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
  5.  
  6. def addition(data, key):
  7. enc = ''
  8. for c in data:
  9. enc += chr((ord(c) + key) & 0xFF)
  10. return enc
  11.  
  12. def xor(data, key):
  13. enc = ''
  14. for c in data:
  15. enc += chr(ord(c) ^ key)
  16. return enc
  17.  
  18. if base64.b64encode(xor(addition(flag, 0xCA), 0xFE)) == '49714ODgAgQF/7vAzBXD180Q17/MA8ID1xDR08HCzf+919IDzwXGw7k=':
  19. print 'Congrats! You found the flag.'
');