develooper Front page | perl.crypto | Postings from February 2005

Re: initialization_vector what are they

Thread Previous | Thread Next
From:
zentara
Date:
February 9, 2005 04:41
Subject:
Re: initialization_vector what are they
Message ID:
8svj0112lu2tc3ur0r04es818bdq8atlg3@4ax.com
On Tue, 8 Feb 2005 07:53:23 EST, PGibbonsX@aol.com 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

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About