Re: initialization_vector what are they

[email protected] (zentara) Wed, 09 Feb 2005 07:18:47 -0500
Newsgroups perl.crypto
Message-ID <[email protected]>
On Tue, 8 Feb 2005 07:53:23 EST, [email protected] wrote:

>hi there,
>i'm using perl to encrypt data and Java using to decrypt:
> 
>while i can get perl or Java to encrypt and decrypt successfully  encryptions 
>that each has encrypted i cannot get perl to unencrypt something  that java 
>encrypted.
> 
>My focus has turned to the initialization_vector as to be a possible  cause.  
>what are they and what does the example below mean?   Presumably java would 
>need the same initialization_vector setting?
> 
>any thoughts would be helpful..
>pg
>
>my $key  =  pack("H16", "0123456789ABCDEF");
>use  Crypt::CBC;
>my  $cipher = Crypt::CBC->new(  {'key'           =>  $key,
>'cipher'          =>  'DES',
>'iv'               =>  '$KJh#(}q',
>'regenerate_key'  => 0,   # default  true
>'prepend_iv'      =>  0,
>'pcbc'            =>  1  #default  0
>});

Did you read "perldoc Crypt::CBC" ?  You can disable 
it  by  setting it to false. There is a 1 paragraph explanation
of the details in the perldoc.

 

-- 
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html