String literals loaded in memory

Posted on 2007-10-17
Medium Priority
Last Modified: 2010-04-05
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?
Question by:kashleee
1 Comment

Accepted Solution

Hardi earned 375 total points
ID: 20098730
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...

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question