lockbox-3

TPLockBox3 and PHP - AES Encrypt in Delphi, Decrypt in PHP

风格不统一 提交于 2019-12-01 00:45:26
I have a trouble with lockbox3 and PHP mcrypt. I can't pass IV to PHP. Delphi code : var Codec: TCodec; CL: TCryptographicLibrary; PlainStream: TStringStream; CipherStream: TMemoryStream; begin PlainStream := TStringStream.Create(Edit1.Text); CipherStream := TMemoryStream.Create; CL := TCryptographicLibrary.Create(nil); Codec := TCodec.Create(nil); Codec.CryptoLibrary := CL; Codec.ChainModeId := uTPLb_Constants.CBC_ProgId; Codec.StreamCipherId := uTPLb_Constants.BlockCipher_ProgId; Codec.BlockCipherId := Format(uTPLb_Constants.AES_ProgId, [256]); Codec.Password := Edit3.Text; Codec

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

Lockbox 3 load public key not possible - stream reading error

谁说我不能喝 提交于 2019-11-30 09:10:07
问题 Well i generated a keypair with openssl openssl genrsa -des3 -out _private.pem 1024 openssl rsa -pubout -in _private.pem -out public.pem Public -----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtdPKdvB/h59WzaE2/S+V 4AmPz5tg9g8tkWh3VrtCHDdD3rGPVZ4zEokJvif4etwHxCQQcS+aOGi3DCyzys+Y qtytFxMzYOLjTbsWC/dqullgtEpNzbvdNB/EgFQjyAcPPL4SGM892R0O/o9wG0H+ ts6ttwdTDX+wXVy6h/uM4eK0gUrk85nOYaRSgmH4u9fGViNH27mkwCr234c3Dn6B LmooeKnUXEU2vXxqetT0Yns72m2dsjpWBw/RVaZn7K9jW7/kIhPTZFA6boOWy3WD

Turbopower Lockbox3 - Can I control initialization vector and padding for AES-256 encryption?

限于喜欢 提交于 2019-11-29 15:52:24
In the process of moving from Delphi2007 to XE2, we are thinking about switching encryption libraries from DCPCrypt to Turbopower Lockbox 3. a) In DCPCrypt I have explicit control over the initialization vector. How would I set the IV in TPLB3? b) DCPCrypt has no padding, we pad the plaintext with zeroes before encryption. How does TPLB pad? We could still do it ourselves of course. Test Vector Cipher = AES-256; Chaining mode = CBC; Termination = C# style all-zero-padding; IV transmission = Full block prepended in the clear in the ciphertext stream. Key =

Lockbox 3 load public key not possible - stream reading error

梦想与她 提交于 2019-11-29 13:01:14
Well i generated a keypair with openssl openssl genrsa -des3 -out _private.pem 1024 openssl rsa -pubout -in _private.pem -out public.pem Public -----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtdPKdvB/h59WzaE2/S+V 4AmPz5tg9g8tkWh3VrtCHDdD3rGPVZ4zEokJvif4etwHxCQQcS+aOGi3DCyzys+Y qtytFxMzYOLjTbsWC/dqullgtEpNzbvdNB/EgFQjyAcPPL4SGM892R0O/o9wG0H+ ts6ttwdTDX+wXVy6h/uM4eK0gUrk85nOYaRSgmH4u9fGViNH27mkwCr234c3Dn6B LmooeKnUXEU2vXxqetT0Yns72m2dsjpWBw/RVaZn7K9jW7/kIhPTZFA6boOWy3WD NZ1BaMnQ7DcAOFuCi24W6dfl3f7wvj7tQF4fslW/vJ67wqd4N5E6h23ypx1E1Ahv HwIDAQAB -----END PUBLIC KEY-----

AES Encrypt/Decrypt Delphi & PHP

百般思念 提交于 2019-11-28 10:35:46
My Delphi application uses TurboPower LockBox 3 to encrypt a plaintext information using AES 256. I now want to decrypt this information using PHP. But TurboPower LockBox 3 has some interoperability issues. Please check the post by LockBox 3 author here for details : http://lockbox.seanbdurkin.id.au/tiki-view_forum_thread.php?comments_parentId=363&topics_offset=1 And a similar post on Stackoverflow Secure keypair encryption solution in Delphi & PHP? In LockBox 3, during encryption, you set a password. This password is then used as a seed to generate the key and iv. So has anyone been able to

Turbopower Lockbox3 - Can I control initialization vector and padding for AES-256 encryption?

*爱你&永不变心* 提交于 2019-11-28 09:22:58
问题 In the process of moving from Delphi2007 to XE2, we are thinking about switching encryption libraries from DCPCrypt to Turbopower Lockbox 3. a) In DCPCrypt I have explicit control over the initialization vector. How would I set the IV in TPLB3? b) DCPCrypt has no padding, we pad the plaintext with zeroes before encryption. How does TPLB pad? We could still do it ourselves of course. Test Vector Cipher = AES-256; Chaining mode = CBC; Termination = C# style all-zero-padding; IV transmission =

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