In general, I would like to ask a question, in a broad sense, how do you implement secure code? (the use of a large number of different access modifiers, or a large number of internal methods closed to the rest of the world which in turn interact with open methods or you have your own methods of concealment)
primarily preventing unwanted interference from outside and disrupting the normal operation of the code
Thank you in advance.