Advertisement
Guest User

Untitled

a guest
Dec 14th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. # Embedded file name: main.py
  2.  
  3.  
  4. def decrypt(encoded, key):
  5.     return ''.join([ chr(((i ^ key) + 10) % 256) for i in encoded ])
  6.  
  7.  
  8. def main():
  9.     enc = [235,
  10.      213,
  11.      224,
  12.      234,
  13.      198,
  14.      218,
  15.      145,
  16.      218,
  17.      226,
  18.      156,
  19.      220,
  20.      238,
  21.      233,
  22.      226,
  23.      156,
  24.      221,
  25.      223,
  26.      157,
  27.      211,
  28.      234,
  29.      158,
  30.      226,
  31.      209,
  32.      216,
  33.      221,
  34.      233,
  35.      145,
  36.      211,
  37.      196]
  38.     key = int(input('Input one-byte decryption key: '))
  39.     flag = decrypt(enc, key)
  40.     print flag
  41.  
  42.  
  43. if __name__ == '__main__':
  44.     main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement