TPLockBox3 and PHP - AES Encrypt in Delphi, Decrypt in PHP
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