Question : How to encrypt hard coded passwords in c++?

How can I encrypt  hard coded passwords in c++ to prevent crackers and hackers from retrieving the passwords and stealing sensitive information.

Answer : How to encrypt hard coded passwords in c++?

>>@jkr I'm using the password to connect to a server via FTP.

FTP passwords are sent in clear text anyway. So I'd not pay too much attention, since a network sniffer (e.g. Wireshark) will disclose them anyway. Any simple encryption is the weapon of choice here - or just 'hide' the passwort in a whole bunch of other data.
Random Solutions  
 
programming4us programming4us