But then you'd have to send the encryption key in order to for the utility to un-encrypt the password... unless you plan to hard code that key into the utility ...
It's the classic problem for auto de-crypting without leaving the key lying around ..
One soln is to supply the key (manually) on prog start-up and make the prog a daemon, so it only has it stored in memory.
Another is to have the key stored elsewhere and have the prog use an ssh-auth-key to go get it.
See also ssh-agent, which creates an env that can store the auth in memory for any process in the same tree.
This qn should produce some interesting answers...