KeNt
Junior Member

Posts: 36
Joined: Jan 2007
Reputation: 1
|
perl troubles with vhcs
code] ./vhcs2-vrl-traff
If specified by -literal_key, then the key length must be equal to the chosen cipher's key length of 56 bytes at /var/www/vhcs2/engine/traffic/../vhcs2_common_code.pl line 1443
Compilation failed in require at ./vhcs2-vrl-traff line 53.[/code]
Code:
cat vhcs2_common_code.pl | head -n1460 | tail -n20
}
my $cipher = Crypt::CBC -> new(
{
'key' => $main::db_pass_key,
'cipher' => 'Blowfish',
'iv' => $main::db_pass_iv,
'regenerate_key' => 0,
'padding' => 'space',
'prepend_iv' => 0
}
);
my $decoded = decode_base64("$pass\n");
my $plaintext = $cipher -> decrypt($decoded);
push_el(\@main::el, 'decrypt_db_password()', 'Ending...');
debian sarge + backports + vhcs2.4.7.1
failed up after updates
how to fix that?
Debian Etch AMD64 user
|
|
| 05-17-2007 10:23 PM |
|
grungy
Junior Member

Posts: 190
Joined: Dec 2006
Reputation: 6
|
RE: perl troubles with vhcs
- OMEGUS FANATICUS -
- Nicaš Do Jaja -
- "If ispCP the dominating hosting system becomes, there is a faith war less" -
Debian Etch 4.0 User
|
|
| 05-17-2007 10:40 PM |
|
joximu
Moderator
    
Posts: 3,815
Joined: Jan 2007
Reputation: 47
|
RE: perl troubles with vhcs
The subroutine in ispcp is this one:
Code:
sub encrypt_db_password {
my ($pass) = @_;
push_el(\@main::el, 'encrypt_db_password()', 'Starting...');
if (!defined($pass) || $pass eq '') {
push_el(\@main::el, 'encrypt_db_password()', 'ERROR: Undefined input data ($pass)...');
return (1, '');
}
my $cipher = Crypt::CBC -> new(
{
'key' => $main::db_pass_key,
'keysize' => 32,
'cipher' => 'Blowfish',
'iv' => $main::db_pass_iv,
'regenerate_key' => 0,
'padding' => 'space',
'prepend_iv' => 0
}
);
my $ciphertext = $cipher->encrypt($pass);
my $encoded = encode_base64($ciphertext); chop($encoded);
push_el(\@main::el, 'encrypt_db_password()', 'Ending...');
return (0, $encoded);
}
so, if you try the line "keysize" in your vhcs, maybe it helps...
(This post was last modified: 05-18-2007 12:29 AM by joximu.)
|
|
| 05-18-2007 12:28 AM |
|