Hi,
I get this error:
Can't locate object method "bootstrap" via package "Crypt:ES" at /home/usr/domain/cgi-bin/lib/Crypt/DES.pm line 23.
When running this:
/home/usr/domain/cgi-bin/lib contains:
DynaLoader.pm
Crypt/DES.pm
Here's the top code from Crypt:ES:
Where does it hurt & why?
Thanks
FnL
I get this error:
Can't locate object method "bootstrap" via package "Crypt:ES" at /home/usr/domain/cgi-bin/lib/Crypt/DES.pm line 23.
When running this:
Code:
#!/usr/bin/perl
use lib '/home/usr/domain/cgi-bin/lib';
use strict;
use CGI qw( standard );
use CGI::Carp qw(fatalsToBrowser);
use Crypt::DES;
use vars qw( $VERSION );
my $q = new CGI;
#--------------------------------------------------
my $key = pack("H16", "0123456789ABCDEF");
my $cipher = new Crypt::DES $key;
my $ciphertext = $cipher->encrypt("plaintex"); # NB - 8 bytes
my @mdp unpack("H16", $ciphertext);
etc...
/home/usr/domain/cgi-bin/lib contains:
DynaLoader.pm
Crypt/DES.pm
Here's the top code from Crypt:ES:
Code:
package Crypt::DES;
require Exporter;
require DynaLoader;
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
@ISA = qw(Exporter DynaLoader);
# Items to export into callers namespace by default
@EXPORT = qw();
# Other items we are prepared to export if requested
@EXPORT_OK = qw();
$VERSION = '2.03';
bootstrap Crypt::DES $VERSION;
use strict;
use Carp;
Where does it hurt & why?
Thanks
FnL