Have you thought about encrypting/decrypting the password information? That way the "visible" args wouldn't be much use to anyone that didn't know you encryption scheme. It would be fairly simple to add this to the perl script (I'm fond of Crypt::Blowfish and use it to store login and passwords for an ftp script). Don't know about adding this capability to your C++ program.