Advertisement
mgostih

Xor

Aug 22nd, 2015
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. #Python 3.0 -- 3.4
  2. #Save this file as .py
  3. #Better putting this in the same directory as other files
  4. #Files needs to be written with extension
  5. #mgostIH
  6. wr=""
  7. key = 11
  8. for i in open(input("Write file to encrypt/decrypt: "),"rb").read():
  9.     wr+=chr(i^key)
  10. open(input("Write output file: "),"w").write(wr)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement