public static byte[] xorByteBlocks(byte[] blockOne, byte[] blockTwo) {
        byte[] newBlock = new byte[blockOne.length];

        for (int i = 0; i < newBlock.length; i++) {
            newBlock[i] = (byte) (blockOne[i] ^ blockTwo[i]);
        }

        return newBlock;
    }