I have written a command line application in C++ that is used to access an online user account via a SOAP API. In order to avoid having any login details written to file anywhere on my machine for security purposes, I decided to write the application as taking the username and passwords as command line arguments. I then found that upon running a
ps -aux command that those sensitive arguments are actually visible in the process list. Is there anyway that these can be masked? I am probably being overly sensitive about the security aspects here but I would like to avoid this data being accessible in any way.
If not, are there any other options available other than using encryption algorithms to decrypt this data from a file or passing in encrypted command line arguments?