diff --git a/_posts/2018-07-01-ndh16.md b/_posts/2018-07-01-ndh16.md index ada0ea4..36ecba4 100644 --- a/_posts/2018-07-01-ndh16.md +++ b/_posts/2018-07-01-ndh16.md @@ -46,7 +46,7 @@ with open('communication_vBZvcbm.txt', 'rb') as f: all_bytes = all_bytes[0] + all_bytes[1] for n in range(1,128): print("\033c") - print("==== try number " + str(n) + "==== \n\n") + print("==== try number " + str(n) + " ==== \n\n") dec = [0] * len(all_bytes) for i in range(len(all_bytes)): dec[i] = (all_bytes[i] + n) % 128 diff --git a/assets/code/cesar-python2.py b/assets/code/cesar-python2.py index e45a02f..d1550ab 100644 --- a/assets/code/cesar-python2.py +++ b/assets/code/cesar-python2.py @@ -3,7 +3,7 @@ with open('communication_vBZvcbm.txt', 'rb') as f: all_bytes = all_bytes[0] + all_bytes[1] for n in range(1,128): print "\033c" - print "==== try number " + str(n) + "==== \n\n" + print "==== try number " + str(n) + " ==== \n\n" dec = [0] * len(all_bytes) for i in range(len(all_bytes)): dec[i] = (ord(all_bytes[i]) + n) % 128