Current time: 05-28-2024, 03:33 PM Hello There, Guest! (LoginRegister)


Post Reply 
perl troubles with vhcs
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
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
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
perl troubles with vhcs - KeNt - 05-17-2007, 10:23 PM
RE: perl troubles with vhcs - grungy - 05-17-2007, 10:29 PM
RE: perl troubles with vhcs - grungy - 05-17-2007, 10:40 PM
RE: perl troubles with vhcs - KeNt - 05-18-2007, 12:09 AM
RE: perl troubles with vhcs - KeNt - 05-18-2007, 12:11 AM
RE: perl troubles with vhcs - joximu - 05-18-2007 12:28 AM
RE: perl troubles with vhcs - Zothos - 05-18-2007, 01:27 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)