There's a general consensus on how to store passwords if you have to validate them yourself (i.e. hash + salt (+ pepper)). However, I am building an application which logs users in into some service X to do actions A, B, C repeatedly for them.
How would one store passwords in this case? Even if they are encrypted, there has to be a 1-to-1 conversion if one wants to log them into service X.