There are a few ways to handle this. The best way: don't rely on passwords in the code at all.
If that isn't a possibility, you can change the custom task code to submit the sensitive code "behind the scenes" and not roll it into the generated code that appears in the process flow. There is a SasSubmitter class that you can use to manage this. I have an example in my book and published example on GitHub. (Look at the SolveExpression() routine in this file.)
... View more