String literals loaded in memory

Posted on 2007-10-17
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
    LVL 6

    Accepted Solution

    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...

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
    Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now