Delphi - Knowledge Base Home  About Us  .Net  Solutions  Microsoft  Extras  Contact Us  Freeware  

Topics

Our Delphi article links are shown below. Simply click a link to get started..
 
Delphi Home
Link to this page



Popular Articles

1. Registry walk through & best practice

2. Using the Microsoft Word COM interface

3. Using the Microsoft Excel COM interface

4. Creating & Using Lookup Forms in Delphi

5. Using encryption in your applications

6. Creating and using splash screens in Delphi

7. Using Dev Express to mimic .NET & XP Styles

8. Using the Microsoft Outlook COM interface


  





Delphi - Encryption, ciphers and hashes (1)

In this article we are going to cover how to install DCPcrypt Cryptographic Component Library (open source), how to call methods for encrypting and decrypting strings, and finally we will take a look at the advanced topic of encrypting files. Our examples relate to applications written in Delphi (5) or similar. For our examples we assume you already have a basic understanding of Delphi but only a limited understanding of encryption components and techniques.

Encryption is becoming ever more popular in today's applications. Developers must have a good understanding of the methods used to secure their applications including any sensitive data. As most developers will tell you, Delphi straight out of the box provides the developer with very little encryption components or classes. Instead developers tend to opt for 3rd party components which are tailored to the exact needs. In this article we are going to use an excellent Open Source library called 'DCPcrypt Cryptographic Component Library'.

The library contains various Ciphers and Hashes, which are further sub divided into the more common names of BlowFish, cat128, DES, SHA and many more. In this article we are going to look closely at TDCP_cast256 (cast256 cipher) which has a block size of 128 bits and a max key size of 256 bits, and also DCP_sha1 (sha1 hash) which has a digest size of 160 bits. Don't worry too much about these technical details at this stage. These two classes provide the ideal encryption architecture to use with any Delphi application. One other point before we continue, the encryption library can also be used in both C++ Builder and Kylix.

Right, lets take a look at how to install the library and get started with some simple encryption. The library comes with several packages which are 'ready to go'. Its easy to install the package, you just need to double click the package which meets your version of Delphi, in our example: DCPdelphi5.dpk. Double clicking the package opens Delphi and the standard install package screen appears. Compile the package if you so wish but clicking install directly will do the trick. The next time you open Delphi you will notice two new tabs; DCPciphers and DCPhashes. The TDCP_cast256 class is found under the DCPciphers tab and DCP_sha1 under the DCPhashes tab.

This library is covered by the Open Source license. See the readme.txt file for details
Download encryption library (Open Source)



Next (Page 2)

Featured

Other popular Delphi resources. Why not try them for yourself?



                   


    

Extras Microsoft Practice Exams Software Directory Music Tracks Net Components Windows Process
Web Hosting Delphi Amiga Games Processos de Windows Braindumps Musicas Gratis
Buy Products Latest Reviews Absolute Adsense Free Web Templates CV Tips Programas Gratis Learning 免费音乐

PrivacyPolicy

  Home  Links  About Us
Copyright © Accelerated Ideas 2005-2009
All rights reserved.


Delphi Knowledge Base. Best practices, walkthroughs, tutorials, component advice and more. Solutions and professional designs for Delphi 4, Delphi 5, Delphi 6 and Delphi, 7. Word COM, Excel COM, Outlook COM including code examples for Word OLE, Excel OLE and Outlook OLE. Automating Outlook to create MailItem and send attachments in Delphi. ActiveX, Com. ADO Data Architecture, TMS component pack walk through and code examples. Using Developer Express and example walkthroughs. Date & time conversion routines, video playback and frame manipulation. COM articles, papers, tips, techniques and hints. How to create Word reports and excel spreadsheets using Delphi code and OLE automation. Understanding Delphi encryption and using ciphers, with source code examples of Blowfish, Twofish, and Rijndael. Securing application data and confidential information using open source encryption components. Free encryption dll component. Accessing and managing MS Excel sheets with Delphi. How to retrieve, display and edit Microsoft Excel spreadsheets with Delphi automation. Accessing and managing MS Word documents with Delphi. How to retrieve, display and edit Microsoft Word documents using Delphi automation. Read and write Excel spreadsheets using Delphi code. How to read and write registry entries using Delphi code. Source code examples using Delphi 5, Delphi 6 and Delphi 7. Working with VCL Developer Express components. How to apply grid styles and themes to Delphi applications. Using image columns and shading to improve the grid and treeview appearances. Including examples from ExpressQuantumPack, for Delphi, ExpressPack for Delphi. Developer guides for Developer Express components. All our articles are written by our senior Delphi professionals to help you get the best from your legacy Delphi applications