Supposing I have an important password somewhere in my program and I want to make it safer, ex:
ftp.password := 'mypassword';
About 8 years ago I use to ‘crack stuff’ for fun, so I found me stuff like that quite easily by using OllyDbg.
What I need to know is if there is a way to make this thing safe from prying eyes. I thought about storing the password directly into the component, but then again don’t know if it would do any good.
Just don’t do it. If you want to keep a password safe, don’t put it in the program. You can ask the user for it if the program is interactive. If not, you should set up some kind of non-password-based authentication for the program to use.
If you must embed the password in the program, the rule is very simple — never give the program to anyone who is not supposed to be able to do anything the password allows them to do.