I've been tasked with writing a module for my company to interface with an external API. This API has a syntax similar to SSH where I have to incorporate the user details as well as the host address of the server I'm trying to connect to.
However, I run into the security issue that in order to pass the user details, I need to have them in plaintext. Even worse is the fact that these user details are actually the user details for the machine that the server is running on. Is there a smart way to do accomplish this task without going overboard and using an external login server? I know there have been similar discussions where the conclusion "Don't do it" was reached, but in this case I really have no control over the way the API works.