perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Holger Kipp ...@alogis.com>
Subject Re: Crypt::CBC
Date Mon, 10 Apr 2006 15:04:07 GMT
On Mon, Apr 10, 2006 at 03:33:44PM +0100, Martin Moss wrote:
> All,
> 
> I had some code which ran the old version of
> Crypt::CBC (2.12).

> my $cipher = new
> Crypt::CBC($ENCRYPTION_KEY,'Blowfish');

> However I've found a problem in that the new machine
> is built with Crypt::CBC version 2.17..
> 
> The above code does not work anymore as I now get the
> following error...:-
> 
> Ciphertext does not begin with a valid header for
> 'salt' header mode at /usr/local/lib/perl/.....
> 
> I tried doing this:-
> 
> my $cipher = new Crypt::CBC(
>             -key => $ENCRYPTION_KEY,
>             -cipher => 'Crypt::Blowfish',
>             -insecure_legacy_decrypt =>1
>             -header =>'randomiv'
>             -salt =>'1'
>                         );

maybe you should try

my $cipher = new Crypt::CBC(
              -key => $ENCRYPTION_KEY,
              -cipher => 'Blowfish',
              -salt => 0
             );

to not use salt then.

Regards,
Holger Kipp

Mime
View raw message