Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
cpan /
Digest-SHA /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
allfcns.t
687
B
-r--r--r--
2014-12-27 11:48
base64.t
1012
B
-r--r--r--
2014-12-27 11:48
bitbuf.t
1.45
KB
-r--r--r--
2014-12-27 11:48
fips180-4.t
1.21
KB
-r--r--r--
2014-12-27 11:48
fips198.t
906
B
-r--r--r--
2014-12-27 11:48
gg.t
2.26
KB
-r--r--r--
2014-12-27 11:48
gglong.t
2.91
KB
-r--r--r--
2014-12-27 11:48
hmacsha.t
2.08
KB
-r--r--r--
2014-12-27 11:48
ireland.t
1.17
KB
-r--r--r--
2014-12-27 11:48
methods.t
3.06
KB
-r--r--r--
2014-12-27 11:49
nistbit.t
1.5
KB
-r--r--r--
2014-12-27 11:48
nistbyte.t
1.65
KB
-r--r--r--
2014-12-27 11:48
rfc2202.t
1.17
KB
-r--r--r--
2014-12-27 11:48
sha1.t
760
B
-r--r--r--
2014-12-27 11:48
sha224.t
812
B
-r--r--r--
2014-12-27 11:48
sha256.t
836
B
-r--r--r--
2014-12-27 11:48
sha384.t
1.06
KB
-r--r--r--
2014-12-27 11:48
sha512.t
1.15
KB
-r--r--r--
2014-12-27 11:48
state.t
3.47
KB
-r--r--r--
2014-12-27 11:48
unicode.t
976
B
-r--r--r--
2014-12-27 11:48
woodbury.t
4.87
KB
-r--r--r--
2014-12-27 11:49
Save
Rename
use strict; use FileHandle; my $MODULE; BEGIN { $MODULE = (-d "src") ? "Digest::SHA" : "Digest::SHA::PurePerl"; eval "require $MODULE" || die $@; $MODULE->import(qw()); } BEGIN { if ($ENV{PERL_CORE}) { chdir 't' if -d 't'; @INC = '../lib'; } } my @out = ( "ungWv48Bz+pBQUDeXa4iI7ADYaOWF3qctBD/YfIAFa0", "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1", ); my $numtests = 8 + scalar @out; print "1..$numtests\n"; # attempt to use an invalid algorithm, and check for failure my $testnum = 1; my $NSA = "SHA-42"; # No Such Algorithm print "not " if $MODULE->new($NSA); print "ok ", $testnum++, "\n"; my $tempfile = "methods.tmp"; END { 1 while unlink $tempfile } # test OO methods using first two SHA-256 vectors from NIST my $fh = FileHandle->new($tempfile, "w"); binmode($fh); print $fh "bcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"; $fh->close; my $sha = $MODULE->new()->reset("SHA-256")->new(); $sha->add_bits("a", 5)->add_bits("001"); my $rsp = shift(@out); print "not " unless $sha->clone->add("b", "c")->b64digest eq $rsp; print "ok ", $testnum++, "\n"; $rsp = shift(@out); # test addfile with bareword filehandle open(FILE, "<$tempfile"); binmode(FILE); print "not " unless $sha->clone->addfile(*FILE)->hexdigest eq $rsp; print "ok ", $testnum++, "\n"; close(FILE); # test addfile with indirect filehandle $fh = FileHandle->new($tempfile, "r"); binmode($fh); print "not " unless $sha->clone->addfile($fh)->hexdigest eq $rsp; print "ok ", $testnum++, "\n"; $fh->close; # test addfile using file name instead of handle print "not " unless $sha->addfile($tempfile, "b")->hexdigest eq $rsp; print "ok ", $testnum++, "\n"; # test addfile portable mode $fh = FileHandle->new($tempfile, "w"); binmode($fh); print $fh "abc\012" x 2048; # using UNIX newline $fh->close; print "not " unless $sha->new(1)->addfile($tempfile, "p")->hexdigest eq "d449e19c1b0b0c191294c8dc9fa2e4a6ff77fc51"; print "ok ", $testnum++, "\n"; $fh = FileHandle->new($tempfile, "w"); binmode($fh); print $fh "abc\015\012" x 2048; # using DOS/Windows newline $fh->close; print "not " unless $sha->new(1)->addfile($tempfile, "p")->hexdigest eq "d449e19c1b0b0c191294c8dc9fa2e4a6ff77fc51"; print "ok ", $testnum++, "\n"; $fh = FileHandle->new($tempfile, "w"); binmode($fh); print $fh "abc\015" x 2048; # using early-Mac newline $fh->close; print "not " unless $sha->new(1)->addfile($tempfile, "p")->hexdigest eq "d449e19c1b0b0c191294c8dc9fa2e4a6ff77fc51"; print "ok ", $testnum++, "\n"; # test addfile BITS mode $fh = FileHandle->new($tempfile, "w"); print $fh "0100010"; # using NIST 7-bit test vector $fh->close; print "not " unless $sha->new(1)->addfile($tempfile, "0")->hexdigest eq "04f31807151181ad0db278a1660526b0aeef64c2"; print "ok ", $testnum++, "\n"; $fh = FileHandle->new($tempfile, "w"); binmode($fh); print $fh map(chr, (0..127)); # this is actually NIST 2-bit test $fh->close; # vector "01" (other chars ignored) print "not " unless $sha->new(1)->addfile($tempfile, "0")->hexdigest eq "ec6b39952e1a3ec3ab3507185cf756181c84bbe2"; print "ok ", $testnum++, "\n";