| By Arthur Hefti | Article Rating: |
|
| December 1, 2004 12:00 AM EST | Reads: |
16,726 |
A Single DLL
The Microsoft Crypto API and the PowerBuilder Crypto Library are comprehensive solutions that normally cover all of your cryptographic needs. On some occasions, however, these solutions do a lot more than you might need or you don't want to deal with the side effects of these solutions. Accessing the Microsoft Crypto API isn't too easy and deploying the PowerBuilder Crypto Library to a lot of client PCs might be a challenge.
If you prefer to use a single DLL for cryptographic functions, look at the Crypto++ library (www.eskimo.com/~weidai/cryptlib.html). This library is public domain and contains everything you need when it comes to cryptography. We've used this library in our projects for years but some C++ coding is necessary to include it in PowerBuilder projects.
Many cryptographic algorithms are public domain and the C source is available on the Web. With so-called test vectors (defined input and output), you can prove the quality of the implementation. With these public domain cryptographic functions, you can compile a simple DLL that you can distribute with your application. We create the CATCryptLT DLL containing a SHA-1 hash function and the Rijndael (also known as AES) encryption/decryption with 128 bits. You can download this DLL including the PowerBuilder source to access the functions from our Web site at www.catsoft.ch.
Conclusion
There are various ways to encrypt data in PowerBuilder. Before you decide which one to use, you have to find out what you want to achieve with it. Maybe it's just the encryption of a password before storing it in the database. You might need to encrypt data asymmetrically before sending it to a Web service. It could be certificate-based SSL communication with a host. Don't forget to think about the deployment. What can be installed on the PC running the application? Will your solution run in EAServer, maybe even on a Linux box? Depending on these studies, different solutions would be appropriate.
Published December 1, 2004 Reads 16,726
Copyright © 2004 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Arthur Hefti
Arthur Hefti is CEO of CATsoft Development GmbH in Zurich. He has been working with PowerBuilder since version 3 and taught dozens of PowerBuilder training classes. He and his team create custom-made client/server and Web applications using XML, Web Services, and encryption.
- User Group Malaise?
- What's New in HTML5
- SAP Buys US Mobile Platform House Syclo
- Best Way to Grow Enterprise Mobility In-House
- What's New in HTML5 - Week of April 1, 2012
- How to Test Drive Enterprise Mobility
- Mobile Marketing News Weekly – Week of March 26, 2012
- Enterprise Mobility Asia News Weekly – Week of March 25, 2012
- The PowerBuilder DataWindow as an Image Thumbnail Display Control
- Mobile Commerce News Weekly – Week of March 19, 2012
- Tablets Have Come of Age
- Mobile Health News Weekly – Week of April 8, 2012
- User Group Malaise?
- What's New in HTML5
- SAP Buys US Mobile Platform House Syclo
- Going Mobile in 2012
- Appeon Mobile: First-Ever Mobility Solution for the PowerBuilder Community
- Take PB to the Web, Mobile & More!
- M2M News Weekly – Week of February 27, 2012
- Best Way to Grow Enterprise Mobility In-House
- What's New in HTML5 - Week of April 1, 2012
- How to Test Drive Enterprise Mobility
- Mobile Marketing News Weekly – Week of March 26, 2012
- Mobility News Weekly – Week of February 20, 2012
- Where Are RIA Technologies Headed in 2008?
- PowerBuilder History - How Did It Evolve?
- The Top 250 Players in the Cloud Computing Ecosystem
- DDDW Tips and Tricks
- Dynamically Creating DataWindow Objects
- OLE - Extending the Capabilities of PowerBuilder
- Working with SOA & Web Services in PowerBuilder
- DataWindow.NET How To: Data Entry Form
- Custom Common Dialogs Using SetWindowsHookEx
- Sybase ASE 12.5 Performance and Tuning
- Office 2003 Toolbar: A New Look For Your Old PowerBuilder App
- Book Excerpt: Sybase Adaptive Server Anywhere


















