From 639e93ca39449c84959ebb526513c7718c070bb1 Mon Sep 17 00:00:00 2001 From: Sebastian Muszytowski Date: Fri, 22 Jan 2016 18:59:14 +0100 Subject: proper null bytes for padding purposes --- utilities/hammington2416.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utilities/hammington2416.py b/utilities/hammington2416.py index 46f76f7..8e60a33 100644 --- a/utilities/hammington2416.py +++ b/utilities/hammington2416.py @@ -25,7 +25,7 @@ for byte in f.read(): bytepos = 0 output += str(HammingCalculateParity2416(ord(oldbyte), ord(byte))) if bytepos == 1: - output += " " - output += str(HammingCalculateParity2416(ord(oldbyte), ord(" "))) + output += "\x00" + output += str(HammingCalculateParity2416(ord(oldbyte), ord("\x00"))) print output \ No newline at end of file -- cgit v1.2.3