RE: Microsoft Writing Secure Code

brian <[email protected]> Thu, 13 Jan 2005 14:30:40 -0600
Newsgroups gmane.comp.security.programming
Message-ID <[email protected]>
>For this reason, I program with complex non sequential numbers for 
>variables, and is "assists" in making higher non secure code more secure.
>
>However the downfall with this more complex non-sequential variable is 
>that the more variables there are the easier it becomes to guess. Thus one 
>would find 1 variable in 10 000 000 variables a lot quicker then 1 
>variable in a 1 000 variables.
>
>Any comments / suggestions welcome (I am here to learn more).
>
>Regards
>   Anton

This isn't real security.  As others have mentioned before, as soon as 
someone gains the ability to change var_userLevel, the game is up as it can 
be easily brute forced.  It also complicates your code unnecessarily, and 
increases the difficulty of debugging.  The very slight degree of increased 
difficulty to get the admin id isn't worth it.  Better to spend more time 
insuring that they can't change var_userLevel.