Crypt::Perl::RSA::PKCS1_v1_5 - PKCS1 v1.5 signature padding
my $digest = Digest::SHA::sha256('This is my message.'); my $sig = Crypt::Perl::RSA::PKCS1_v1_5::encode( $digest, 'sha256', #digest OID; see below 2048, #the bit length of the key’s modulus ); #This value should match $digest. my $digest_dec = Crypt::Perl::RSA::PKCS1_v1_5::decode( $sig, 'sha256', );
sha512
sha384
sha256
The following are considered too weak for good security now; they’re included for historical interest.
sha1
md5
md2
To install Crypt::Perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::Perl
CPAN shell
perl -MCPAN -e shell install Crypt::Perl
For more information on module installation, please visit the detailed CPAN module installation guide.