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

Posted on 2009-04-27
Medium Priority
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
  • 3
  • 3

Accepted Solution

JosephGlosz earned 2000 total points
ID: 24247389
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.



Assisted Solution

JosephGlosz earned 2000 total points
ID: 24247407
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

ID: 24247610
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 :(
2017 Webroot Threat Report

MSPs: Get the facts you need to protect your clients.
The 2017 Webroot Threat Report provides a uniquely insightful global view into the analysis and discoveries made by the Webroot® Threat Intelligence Platform to provide insights on key trends and risks as seen by our users.


Author Closing Comment

ID: 31575306
The understanding was the readme's mistake from the component I donwloaded :)

Expert Comment

ID: 24247742
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

ID: 24257196
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

 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

Question has a verified solution.

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

Let's take a look into the basics of ransomware—how it spreads, how it can hurt us, and why a disaster recovery plan is important.
When you put your credit card number into a website for an online transaction, surely you know to look for signs of a secure website such as the padlock icon in the web browser or the green address bar.  This is one way to protect yourself from oth…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
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…
Suggested Courses

862 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