mmlenz has asked for the wisdom of the Perl Monks concerning the following question:
Simple. Don't use it right? We'll I have data encrypted with this method that I need to decrypt first in order to upgrade it to something more secure and modern. I'd prefer not to have to decrypt, store it in the db, and then come back and re-encrypt using a new method.my $cipher = Crypt::CBC->new( -key => $pass, -cipher => 'Blowfish', -header => 'randomiv' );
$text and $plantext aren't equal on 3.04 but they are on 2.33. I dug through the documentation and changelog but can't spot anything that says this shouldn't work. There are lots of new options in 3.04. I reached out to Lincoln Stein (the author) but I haven't heard back. Any other experts? :) EDIT: It looks like I'm not the only one. https://rt.cpan.org/Public/Bug/Display.html?id=134355 Unfortunately I'm using different calling params and not sure how to adapt to my situation. :(my $ciphertext = $cipher->encrypt_hex($plaintext); my $text = $cipher->decrypt_hex($ciphertext);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Crypt::CBC 2.33 -> Crypt::CBC 3.04 incompatibilities
by marto (Cardinal) on Sep 13, 2023 at 12:59 UTC | |
by mmlenz (Acolyte) on Sep 13, 2023 at 13:42 UTC | |
by parv (Parson) on Sep 13, 2023 at 18:46 UTC | |
by mmlenz (Acolyte) on Sep 15, 2023 at 13:04 UTC | |
|
Re: Crypt::CBC 2.33 -> Crypt::CBC 3.04 incompatibilities
by tobyink (Canon) on Sep 13, 2023 at 14:04 UTC |