I have realized some time ago that we should not put the login/password for accessing a remote database server directly into a executable file because of the reverse engineering and memory decoding. I do not know if this is what everybody already do, but I prefer to first access some encrypted API with a key or phrase and then receive the login and password (also encrypted) to start accessing the database.
What I do not know is of a good encryption system that can be decryption with the right key or phrase that we use to encrypt the data at first time.
So what I am asking is if it exists and where can I see the solution for working with systems that uses Delphi, PHP, Java and JavaScript? Because there are these different parts of the system that may communicate with that kind of encryption.
I am not talking about something like SHA/MD5, that can't be recovered.
SHA/MD5
are hash algorithms and irreversible by design. They are not used for encryption but combined with encryption algorithms make elegant security solutions i.g. digital signature, public-key cryptography...