as we encrypt every bit separately we need to loop through the number