Created
October 12, 2016 17:21
-
-
Save volgar1x/3b4ba760fb3c1a1c29863a5a2dc2aaf4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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