What is the purpose of output encoding in secure programming?
1
To prevent unauthorized access to the application
2
To sanitize user input and prevent code injection attacks
3
To validate the integrity of user input
4
To encrypt data transmitted over the network