String literals loaded in memory

Delphi 7

How do I hide strings in my application? I used Process Explorer from sysinternals, and I could see all the strings in my program. I tried various packers/protectors but none of them worked.

Are there any good techniques to hiding/encrypting literal strings? For example, I might store my database username and password in my app, is there a way to stop Process Explorer from reading it?
Who is Participating?
Just encrypt the string, and don't store the decrypted string in memory/variable. So everytime you want to read it you decrypt it.
var password <-- stores the encrypted password
  if TextBox1.Text = password
  if TextBox1.Text = Decrypt(password)
I think this way the decrypted password won't be shown in Process Explorer...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.