Computer science. The best way depends on your current situation.
Do Computer Science. Pay attention in security class. If you are interested, do Mathematics as well.
Saylor Academy has some CS courses for free: https://learn.saylor.org/course/index.php?categoryid=9
reply
Let's talk about it.
reply
You don't necessarily have to go to school for computer science, but you could start learning programming and it's principles on your own.
The Odin Project FreeCodeCamp JavaScript.info/
Etc
reply
Sure, give us more about your background, interests, education, financial situation, etc.
reply