1. 程式人生 > >php伺服器端加密+delphi客戶端加密

php伺服器端加密+delphi客戶端加密

Delphi

I've been using Delphi for quite a long time now, from version 1 on Windows 3.11! I intend to release any interesting things that I develop as open source programs. I may in future put some maths related programs here but until then the the only thing of note is my...

Delphi Cryptography Package

DCPcrypt is an open source library of cryptographic components (encryption algorithms and hash algorithms) for Borland Delphi and Kylix (it also works under some versions of C++ Builder). I haven't been able to update it for quite a long time now but it still works quite happily with Delphi 4, 5, 6, 7 and 2005 and Kylix 1 and 2 (it might work under Kylix 3, but I don't have a copy to try it out on). The current version (v2 beta 3) is considered to be stable and for all intents and purposes is the final release before I revamp everything.

Thanks to Manuel C. for making changes to the code to make this work under Delphi 2005!

For those of you using PHP, here is a little demo showing how to get PHP and Delphi encryption to work together.

The idea behind DCPcrypt is that it should be possible to "drop in" any algorithm implementation to replace another with minimum or no code changes. To aid in this goal all cryptographic components are descended from one of several base classes, TDCP_cipher for encryption algorithms and TDCP_hash for message digest algorithms.

DCPcrypt v2 contains full implementations of the following algorithms:

Encryption Algorithms

Hash Algorithms

  • Blowfish
  • Cast 128
  • Cast 256
  • DES, 3DES
  • Ice, Thin Ice, Ice2
  • IDEA
  • Mars
  • Misty1
  • RC2, RC4, RC5, RC6
  • Rijndael (the new AES)
  • Serpent
  • Tea
  • Twofish
  • Haval
  • MD4
  • MD5
  • RipeMD-128
  • RipeMD-160
  • SHA-1
  • SHA-256, SHA-384, SHA-512
  • Tiger

DCPcrypt is open source software (released under the MIT license) and as such there is no charge for inclusion in other software. However, I am currently a student and if you are making money from my software I would really appreciate a donation of some sort, whether financial or a license for the software you develop (or if anyone wants to sponsor a Ph.D. student in Nonlinear Dynamics ...).

You can make donations via Paypal to the Paypal address [email protected] or by clicking the Donate button.

Or if you want you can buy me a (small) gift from my wish list at Amazon.co.uk. Thanks!

  • DCPcrypt Demos - Two demos for use with DCPcrypt v2.
  • DCPcrypt v2 Beta 3 - RECOMMENDED: The very latest version with full(?) documentation.
  • DCPcrypt v1.31 - The last of the "old style" library series. All the implementations work correctly however it is recommended that you use the v2 beta.

If for some strange reason you'd like to contact me, try emailing me at

My email address

Make sure the subject line is something noticeable e.g. "DCPcrypt". If you don't get a reply within a week or two then try sending your message again. I'm getting very annoyed by all the spam...

Site last modified December 2004. Copyright © 2004 David Barton.