Crypt::HTTP::Signature::Method::RSA - Compute digest using asymmetric keys
This class uses asymmetric RSA keys to compute a HTTP signature digest. It implements the RSA-SHA{1, 256, 512} algorithms.
Holds the key data. This should be a string that Crypt::OpenSSL::RSA can instantiate into a private or public key.
If the operation is sign(), then this attribute must hold a private key. In other words, the string this attribute holds should start with
sign()
-----BEGIN RSA PRIVATE KEY-----
If the operation is verify(), then this attribute must hold a public key. In other words, the string this attribute holds should start with
verify()
-----BEGIN PUBLIC KEY-----
Holds the data to be signed or verified. This is typically the signing_string attribute from Authen::HTTP::Signature. Read-only. Required.
signing_string
Digest algorithm. Read-only. Required.
Signs data using key.
data
key
Returns a base 64 encoded signature.
This method validates a signature was generated by a specific private key by using the corresponding public key.
Takes a Base64 encoded signature string as input.
Returns a boolean.
Authen::HTTP::Signature
To install Authen::HTTP::Signature, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Authen::HTTP::Signature
CPAN shell
perl -MCPAN -e shell install Authen::HTTP::Signature
For more information on module installation, please visit the detailed CPAN module installation guide.