in reply to Re: Crypt::CBC, Blowfish and Salt problem
in thread Crypt::CBC, Blowfish and Salt problem

Thanks... I tried that, here is my new code at the end of the subroutine:
my $cipher = Crypt::CBC->new( -key => $key, -cipher => 'Blowfish', -salt => 1, -insecure_legacy_decrypt => 1 );
Now I get the following message, even if I take out the -salt=>1
Ciphertext does not begin with a valid header for 'salt' header mode

Any other ideas?

Thank you,
Richard

Replies are listed 'Best First'.
Re^3: Crypt::CBC, Blowfish and Salt problem
by almut (Canon) on Feb 18, 2008 at 23:27 UTC

    What Sam wrote above sounds like a good hypothesis... Have you tried that?

    If all else fails, you might also consider downgrading to pre-2.17 (temporarily, to get operational again) and then work out a way to migrate your old encrypted data to the new style usage/encoding.  For that, it's probably a good idea to install the old version into some private location, and then put use lib "/path/to/old/module"; at the top of the script.

      yeah I thought of that, but I don't see where to get 2.16 at... any ideas?

      thanks,
      Richard

        You can select from "Other releases" on search.cpan.org — e.g. version 2.15 (dunno what happened to 2.16).

      If you take out the -salt = >1 and add: -header => 'randomiv' it works.