turbopower

TSimpleCodec.Begin_EncryptMemory - Wrong mode

ⅰ亾dé卋堺 提交于 2021-01-29 07:12:43
问题 I get TSimpleCodec.Begin_EncryptMemory - Wrong mode exception wile executing the following code. Is it something wrong? FLibrary := TCryptographicLibrary.Create(Self); FCodec := TCodec.Create(Self); FCodec.CryptoLibrary := FLibrary; FCodec.BlockCipherId := 'native.AES-256'; FCodec.ChainModeId := 'native.ECB'; FCodec.Password := 'password'; plain := 'The plain text'; FCodec.EncryptString(plain, astr); FCodec.DecryptString(dec, astr); 回答1: When initialising the codec by run-time code, you need

Converting TurboPower Lockbox 2 to LockBox 3

不想你离开。 提交于 2019-12-24 01:02:02
问题 I am currently in the process of converting a project (that uses encryption) from Delphi 6 to XE. This project uses the old Delphi Encryption Compendium which does not work in XE. So I figured that I would swap from that component set to LockBox. There are two versions of LockBox - 2 and 3. I have no problems with using the LockBox2 in Delphi 6. I though that I would use LockBox3 in XE, but the problem that I have is that I cannot get the same results when used with ExFile demo program (from

How to use AES-256 encryption in lockbox 3 using delphi

百般思念 提交于 2019-12-04 05:30:27
问题 I've downloaded Lockbox3 about a week ago and i can't use it, and i couldn't understand the demo because it's complex i couldn't get the codes i want from it, I'd like to use lockbox 3 AES-256 encryption to encrypt strings in Delphi. 回答1: The method and property names pretty much say it all. Here is a method which encrypts a string and then decrypts it back again, assuming you've setup the codec properties at design time, which are also self-describing. procedure TForm1

How to use AES-256 encryption in lockbox 3 using delphi

不问归期 提交于 2019-12-02 06:12:05
I've downloaded Lockbox3 about a week ago and i can't use it, and i couldn't understand the demo because it's complex i couldn't get the codes i want from it, I'd like to use lockbox 3 AES-256 encryption to encrypt strings in Delphi. The method and property names pretty much say it all. Here is a method which encrypts a string and then decrypts it back again, assuming you've setup the codec properties at design time, which are also self-describing. procedure TForm1.actEncryptStringExecute( Sender: TObject ); var Plaintext, sReconstructedPlaintext: string; base64Ciphertext: ansistring; begin

Delphi XE2 TurboPower component status

我的未来我决定 提交于 2019-12-01 03:07:43
The TurboPower components were among the most popular commercial component libraries and are still used by many Delphi developers as they went open source. Instead of asking individually, I thought I'd ask a single question as to the state of XE2 compatibility for each of the components. TurboPower Abbrevia, AsyncPro, and LockBox as the main ones. Compatibility includes platform support: XE2 Win32, Win64, Mac OS X. (I doubt that Async Pro would ever go Mac OS X, but perhaps XE2 Win32 at least.) Abbrevia v5.0 supports XE2. Win64 is fully supported, OS X supports everything except the zipx

Delphi XE2 TurboPower component status

旧时模样 提交于 2019-11-30 23:02:43
问题 The TurboPower components were among the most popular commercial component libraries and are still used by many Delphi developers as they went open source. Instead of asking individually, I thought I'd ask a single question as to the state of XE2 compatibility for each of the components. TurboPower Abbrevia, AsyncPro, and LockBox as the main ones. Compatibility includes platform support: XE2 Win32, Win64, Mac OS X. (I doubt that Async Pro would ever go Mac OS X, but perhaps XE2 Win32 at least

How to AES-128 encrypt a string using a password in Delphi and decrypt in C#?

江枫思渺然 提交于 2019-11-27 13:23:05
I'd like to AES-128 encrypt a string in Delphi with a password. I'd like to upload this to my server and be able to decrypt given the same password in C#. In Delphi, I'm using TurboPower LockBox 3: function EncryptText_AES_128(input: string; password: string): string; var Codec: TCodec; CipherText: AnsiString; begin Codec := TCodec.Create(nil); try Codec.CryptoLibrary := TCryptographicLibrary.Create(Codec); // Codec.StreamCipherId := BlockCipher_ProgID; Codec.BlockCipherId := Format(AES_ProgId, [128]); Codec.ChainModeId := CBC_ProgId; // Codec.Password := Password; Codec.EncryptString(input,

How to AES-128 encrypt a string using a password in Delphi and decrypt in C#?

北城以北 提交于 2019-11-26 16:19:20
问题 I'd like to AES-128 encrypt a string in Delphi with a password. I'd like to upload this to my server and be able to decrypt given the same password in C#. In Delphi, I'm using TurboPower LockBox 3: function EncryptText_AES_128(input: string; password: string): string; var Codec: TCodec; CipherText: AnsiString; begin Codec := TCodec.Create(nil); try Codec.CryptoLibrary := TCryptographicLibrary.Create(Codec); // Codec.StreamCipherId := BlockCipher_ProgID; Codec.BlockCipherId := Format(AES