Alt-Crypt-RSA-BigInt
view release on metacpan or search on metacpan
lib/Crypt/RSA/Debug.pm view on Meta::CPAN
121314151617181920212223242526272829303132require
Exporter;
@ISA
=
qw(Exporter)
;
@EXPORT_OK
=
qw(debug debuglevel)
;
my
$DEBUG
= 0;
sub
debug{
return
unless
$DEBUG
;
my
(
$caller
,
undef
) =
caller
;
my
(
undef
,
undef
,
$line
,
$sub
) =
caller
(1);
$sub
=~ s/.*://;
$sub
=
sprintf
"%12s()%4d"
,
$sub
,
$line
;
$sub
.=
" | "
. (
shift
);
$sub
=~ s/\x00/[0]/g;
$sub
=~ s/\x01/[1]/g;
$sub
=~ s/\x02/[2]/g;
$sub
=~ s/\x04/[4]/g;
$sub
=~ s/\x05/[5]/g;
$sub
=~ s/\xff/[-]/g;
$sub
=~ s/[\x00-\x1f]/\./g;
$sub
=~ s/[\x7f-\xfe]/_/g;
lib/Crypt/RSA/Key/Private.pm view on Meta::CPAN
5657585960616263646566676869707172737475
if
(
defined
$$prikey
) {
$$prikey
= Math::BigInt->new(
"$$prikey"
)
unless
ref
(
$$prikey
) eq
'Math::BigInt'
;
return
$$prikey
;
}
return
$self
->{private_encrypted}{
"_$key"
}
if
defined
$self
->{private_encrypted}{
"_$key"
};
return
;
}
elsif
(
$key
=~ /^Identity|Cipher|Password$/) {
$self
->{
$key
} =
$value
if
$value
;
return
$self
->{
$key
};
}
elsif
(
$key
=~ /^Checked$/) {
my
(
$package
) =
caller
();
$self
->{Checked} =
$value
if
(
$value
&&
$package
eq
"Crypt::RSA::Key::Private"
) ;
return
$self
->{Checked};
}
}
sub
hide {
my
(
$self
) =
@_
;
( run in 0.242 second using v1.01-cache-2.11-cpan-0d8aa00de5b )