How to pass password stored as type credential to plugin agent

I need to send a password from my Teamcity plugin config to the build agent. Currently I'm having issues because:
A: The value is masked with asterisks while the agent is using it.
B: Even if I could get the value from the agent, it's encrypted using a method that's unknown to me. 

The docs online haven't helped me and I haven't been able to find any code examples. What's the best way to pass the plaintext password value to the agent while it's running my plugin?


Please sign in to leave a comment.