Skip to content

Instantly share code, notes, and snippets.

@volgar1x
Created October 12, 2016 17:21
Show Gist options
  • Save volgar1x/3b4ba760fb3c1a1c29863a5a2dc2aaf4 to your computer and use it in GitHub Desktop.
Save volgar1x/3b4ba760fb3c1a1c29863a5a2dc2aaf4 to your computer and use it in GitHub Desktop.
import sys
with open('ch7.bin') as f:
data = "".join(f.readlines())
for shift in range(0, 255):
sys.stdout.write('%d >>> ' % shift)
for i in range(0, len(data)):
sys.stdout.write(chr((ord(data[i])+shift) % 255))
sys.stdout.write('\n')
sys.stdout.flush()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment