I need an encryption library (VCL or not) that will work with Delphi XE2 & unicode strings,
64 & 32 bit compiles.
I need it in order to store data in a database.
The Delphi Cryptography Page (DCPCrypt) is an open source library written by David Barton ([email protected]) http://www.cityinthesky.co.uk/opensource/dcpcrypt that provides a collection of very comprehensive, free to export, symmetric key, cryptographic components.
I found this in Embarcadero forum, a version of DCPCrypt that has been updated by a user.
Here is the code if anyone stumbles into the same problem.
I also found this library (TurboPower LockBox) that supports Delphi Xe2
All standard encryption algorithms operate on bytes or bits. You should be able to use any implementation that supports Delphi XE2 Win32 and Win64, at least as long as you yourself take responsibility for decoding and encoding your unicode strings. There is a TEncoding class in the RTL SysUtils unit that you should use for converting your unicode strings to and from TBytes, using the encoding of your own choice.
The reason many Delphi implementations of encryption algorithms take string parameters, is mainly historical, and shouldn't be understood as if the implementations necessarily know what a character or a string is. Many Delphi versions ago, before the TBytes type was added to the VCL/RTL, there were five ways to declare such methods, and using strings was often the most convenient one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With