fork download
  1. from time import sleep
  2. cypher_key = "emitsakcatstcartxetropmikcabecartmorf"
  3. rot = [0x00, 4, 13, 19, 26, 31, 33, 37, 0x0F]
  4.  
  5. # Generate the cypher
  6. encoded = []
  7. for i in xrange(len(rot)-1):
  8. a, b = rot[i], rot[i+1]
  9. encoded.append(cypher_key[::-1][a:b])
  10. for enc in encoded[:-1]:
  11. encoded[-1] += enc + " " if len(enc) != 7 else enc + "_"
  12. exec(encoded[-1])
  13.  
  14. def GetCurrentExecutionTime():
  15. val = time()[-2][1]
  16. return val
  17.  
  18. def HelloWorld(key=None):
  19. timecode = [-rot[-1]] * 11
  20. def SimultaneousEndPoiintEncode():
  21. timecode[-1] = GetCurrentExecutionTime()
  22. timecode[1] = GetCurrentExecutionTime()
  23.  
  24. # Initialize start and end values
  25. timecode[0] = GetCurrentExecutionTime()
  26. SimultaneousEndPoiintEncode()
  27.  
  28. # Set the next chars in to the encryption simultaneously
  29. timecode[2] = timecode[3] = timecode[-2] = GetCurrentExecutionTime()
  30. # 0x4 and 0x7 need 47 ms delay
  31. sleep(47 / 1000.0)
  32. timecode[4] = timecode[7] = GetCurrentExecutionTime()
  33.  
  34. # 8 comes after 7, do that next
  35. timecode[8] = GetCurrentExecutionTime()
  36.  
  37. while True:
  38. # Have to search the list for the sixth entry as it is the center
  39. timecode[6] += 1
  40. if timecode[6] == GetCurrentExecutionTime():
  41. break
  42.  
  43. # Use the key to finally encode the string to our output format
  44. return "".join([key(hexval + 0x2F) for hexval in timecode])
  45.  
  46. print HelloWorld(key=chr)
Success #stdin #stdout 0.03s 7856KB
stdin
Standard input is empty
stdout
HELLO WORLD