Know of any working, easy to implement, free functions or procedures for encrypting simple strings of text?

Posted on 2009-04-27
Last Modified: 2013-11-29
I am coding things in Delphi 2009, and need to encrypt sensitive strings of information.

Can anyone paste an encrypt/decrypt procedure or link to a free unit or control that will provide strong string encryption at no cost?

I been googling for long time!
Question by:kthxbai2u
    LVL 6

    Accepted Solution

    I use old TurboPower's Lockbox a lot and it has everything you need.  RSA, Triple DES, Hashes, and a lot more.  Including high level functions such as 'EncryptString' and 'DecryptString.'  Also has all the low level and mid level stuff in case you want to a little more into it.

    check out the port to Delphi 2009 at the link below.  It's all free and includes a great user's manual in PDF form.
    TurboPower was well known for their phenomenal documentation.

    LVL 6

    Assisted Solution

    Also, the same components/classes and a lot more can be downloaded directly from:

    If those great docs I was talking about are not included there, download them from


    Author Comment

    Great, a free component! thanks!

    I am stuck here:
     3. Add the source subdirectory (e.g., d:\lockbox\source) to the
         IDE's library path.

    and here:
    5. Make sure the PATH environmental variable contains the directory
         in which the compiled packages (i.e., BPL or DPL files) were

    I don't know how to do either in Delphi 2009, Given the time I'm sure I'd figure it out, but I don't have time right now, I work tomorrow :(

    Author Closing Comment

    The understanding was the readme's mistake from the component I donwloaded :)
    LVL 6

    Expert Comment

    well, in all versions of Delphi up to 2007, you simply add the path to the Environment section.  that is in D2007 you would go to

    Tools | Options | Environment Options | Delphi Options | Library Win32 then add your additional paths to the existing library path. D2009 is likely similar, but I haven't tested it yet.

    Author Comment

    k I've done that but when I open the L208vd120.dpk file it gives me an error with a file path where the last 20 or so characters are squares... I think I will try to find another component, after checking its 2009 compatibility...

    Thanks for help :)

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    How to sign a powershell script so you can prevent tampering, and only allow users to run authorised Powershell scripts
    SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    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…

    728 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

    17 Experts available now in Live!

    Get 1:1 Help Now