initialization_vector what are they
[email protected] Tue, 8 Feb 2005 07:53:23 EST
| Newsgroups | perl.crypto |
|---|---|
| Message-ID | <[email protected]> |
-------------------------------1107867203
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
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
});
-------------------------------1107867203--