HEX
Server: Apache/2.2.22
System: Linux server1.blueharbor.com 3.10.0-1160.90.1.vz7.200.7 #1 SMP Wed Jul 12 12:00:44 MSK 2023 x86_64
User: locglobe (1004)
PHP: 5.6.37
Disabled: NONE
Upload Files
File: //usr/share/doc/perl-Mail-DKIM-0.39/scripts/test_bare_rsa_sha1.pl
#!/usr/bin/perl -I../../..

use strict;
use warnings;

use Mail::DKIM::Algorithm::rsa_sha1;

unless (-f "private.key")
{
	die "File not found: private.key\n";
}

my $rsa_sha1 = new Mail::DKIM::Algorithm::rsa_sha1(
				KeyFile => "private.key");
while (<STDIN>)
{
	chomp;
	$rsa_sha1->PRINT("$_\015\012");
}
$rsa_sha1->CLOSE;

print $rsa_sha1->sign;