From 64f2c22facc5b2630c6c854ce932ede1e81cfcc3 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Mon, 11 May 2020 12:08:47 +0200 Subject: [PATCH] Added more debug to block.py --- block.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/block.py b/block.py index 01a65e7..5107dec 100755 --- a/block.py +++ b/block.py @@ -23,15 +23,18 @@ def keyToIntTuple(key): def applyKeyToBlock(keyT, blockL): # function to apply a key to a block blockDe = [""] * blockSize if(in_mode == 0): + print("Encrypting block: " + str(blockL) ) for i in range(blockSize): blockDe[i] = blockL[keyT[i]] # encrypting elif(in_mode == 1): + print("Decrypting block: " + str(blockL) ) for i in range(blockSize): blockDe[keyT[i]] = blockL[i] # decrypting return blockDe def splitInput(inputL, n): + print("Splitting input: " + str(n)) out = [] inputLen = len(inputL) x = inputLen / float(n)