in reply to about crypt/decrypt strings with Rijndael

thanks for your suggestions but I'm still getting errors when I try to decrypt thah string:
ù my $cipher = Crypt::CBC->new( -key=>'marco', -cipher => 'Rijndael',#-header=>'none', ); my $str= 'e50b672aed16125ec7c66a92dd862d758580ab3ea2b8fd1092d824db07bd +b812c5f7e3831e0b9bf5c1796eac20a70aa5814a6bdab7254b954de49475db42b98b' +; $str = pack "C*", unpack "(H2)*", $str; my $decrypted = $cipher->decrypt( $str );
I get:
Ciphertext does not begin with a valid header for 'salt' header mode at..

Replies are listed 'Best First'.
Re^2: about crypt/decrypt strings with Rijndael
by jethro (Monsignor) on Mar 02, 2009 at 14:27 UTC
    You might remove the '#' inside the argument list of the new() call. The default header mode seems to be salted which obviously leads to this error message