IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Store
PRESTWOODSTORE

Prestwood eMagazine

July Edition
Subscribe now! It's Free!
Enter your email:

   ► KBProgrammingDelphi for W...   Print This     
  From the August 2010 Issue of Prestwood eMag
 
Delphi for Win32:
Delphi: Encryption of data fields
 
Posted 17 years ago on 5/19/2003
Take Away: This article discusses the reasons and methods for encrypting data fields in Delphi.

KB100245

Keeping sensitive data from prying eyes is an issue that Delphi developers often face. Even if you use database encryption methods, there are often times when you need to apply a second level of protection on your data fields.

With desktop databases, such as Paradox, Access, or Advantage Database, the data values stored in the data files can often be viewed with most file editors. Enabling database encryption on your tables can prevent casual access to your data, but this method is only as effective as the user security you implement on the database.

To keep authorized database users out of your sensitive data, such as passwords or credit card numbers, you need to implement a second level of security on the data fields themselves. In Delphi, this can be accomplished by adding data filtering to the fields you wish to encrypt, and using an encryption algorithm to alter the field values.

There are many data encryption algorithms available in the public domain that you can use, such as Blowfish, DES, RC2, RC4, Ice, CAST, or Serpent, as well as many others. There are many Delphi libraries and components that implement the algorithms you select.

In Delphi, you can add encryption filtering to a data field through the GetText and SetText TField events. These events allow you to convert the string value of a field when it is read from or written to the database.

One FREE component suite we use here at Prestwood Software that we found to be both well-written and easy to implement is the DCPcrypt Cryptographic Component Library by David Barton. The URL to his version 2.2 beta release is at http://www.cityinthesky.co.uk/cryptography.html.

Comments

1 Comments.
Share a thought or comment...
Comment 1 of 1

hello world

---
alex
Posted 5 years ago
 
Write a Comment...
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P184A1
Enter key:
KB Post Contributed By Scott Wehrly:

Scott Wehrly is currently working on .Net web applications for the gaming industry. Scott is a former employee of Prestwood Software (he was a Development Manager). Scott's specialties include C#, ASP.Net, MSSQL Server 2005, Delphi, SQL databases, C++, C, and Windows programming in general. When time allows, he participates in this online community.

Visit Profile

 KB Article #100245 Counter
11754
Since 4/2/2008
Sales Website: www.prestwood.com Or visit our legacy sales site: 
legacy.prestwood.com


©1995-2020 Prestwood IT Solutions.   [Security & Privacy]