HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/share/doc/perl-Mail-DKIM/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;