Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 32.390.464 Times

Mail::DKIM::Signature 0.26

  Date Added: April 11, 2010  |  Visits: 898


Report Broken Link
Printer Friendly Version

Product Homepage
Download (81 downloads)

Mail::DKIM::Signature module encapsulates a DKIM signature header. CONSTRUCTORS new() - create a new signature from parameters my $signature = new Mail::DKIM::Signature( [ Algorithm => "rsa-sha1", ] [ Signature => $base64, ] [ Method => "relaxed", ] [ Domain => "", ] [ Headers => "from:subject:date:message-id", ] [ Query => "dns", ] [ Selector => "alpha", ] ); parse() - create a new signature from a DKIM-Signature header my $sig = parse Mail::DKIM::Signature( "DKIM-Signature: a=rsa-sha1; b=yluiJ7+0=; c=relaxed" ); Constructs a signature by parsing the provided DKIM-Signature header content. You do not have to include the header name (i.e. "DKIM-Signature:") but it is recommended, so the header name can be preserved and returned the same way in as_string(). Note: The input to this constructor is in the same format as the output of the as_string method. METHODS algorithm() - get or set the algorithm (a=) field The algorithm used to generate the signature. Should be either "rsa-sha1", an RSA-signed SHA-1 digest, or "rsa-sha256", an RSA-signed SHA-256 digest. See also hash_algorithm(). as_string() - the signature header as a string print $signature->as_string . "n"; outputs DKIM-Signature: a=rsa-sha1; b=yluiJ7+0=; c=relaxed As shown in the example, the as_string method can be used to generate the DKIM-Signature that gets prepended to a signed message. as_string_without_data() - signature without the signature data print $signature->as_string_without_data . "n"; outputs DKIM-Signature: a=rsa-sha1; b=; c=relaxed This is similar to the as_string() method, but it always excludes the "data" part. This is used by the DKIM canonicalization methods, which require incorporating this part of the signature into the signed message. body_count() - get or set the body count (l=) field my $i = $signature->body_count; Informs the verifier of the number of bytes in the body of the email included in the cryptographic hash, starting from 0 immediately following the CRLF preceding the body. Also known as the l= tag. When creating a signature, this tag may be either omitted, or set after the selected canonicalization system has received the entire message body (but before it canonicalizes the DKIM-Signature). body_hash() - get or set the body hash (bh=) field my $bh = $signature->body_hash; The hash of the body part of the message. Whitespace is ignored in this value. This tag is required. When accessing this value, whitespace is stripped from the tag for you. canonicalization() - get or set the canonicalization (c=) field $signature->canonicalization("relaxed", "simple"); ($header, $body) = $signature->canonicalization; Message canonicalization (default is "simple/simple"). This informs the verifier of the type of canonicalization used to prepare the message for signing. In scalar context, this returns header/body canonicalization as a single string separated by /. In list context, it returns a two element array, containing first the header canonicalization, then the body. domain() - get or set the domain (d=) field my $d = $signature->domain; # gets the domain value $signature->domain(""); # sets the domain value The domain of the signing entity, as specified in the signature. This is the domain that will be queried for the public key. expiration() - get or set the signature expiration (x=) field Signature expiration (default is undef, meaning no expiration). The signature expiration, if defined, is an unsigned integer identifying the standard Unix seconds-since-1970 time when the signature will expire. get_public_key() - fetches the public key referenced by this signature my $pubkey = $signature->get_public_key; Public key to fetch is determined by the protocol, selector, and domain fields. hash_algorithm() - access the hash algorithm specified in this signature my $hash = $signature->hash_algorithm; Determines what hashing algorithm is used as part of the signatures specified algorithm. For algorithm "rsa-sha1", the hash algorithm is "sha1". Likewise, for algorithm "rsa-sha256", the hash algorithm is "sha256". If the algorithm is not recognized, undef is returned. headerlist() - get or set the signed header fields (h=) field $signature->headerlist("a:b:c"); my $headerlist = $signature->headerlist; my @headers = $signature->headerlist; Signed header fields. A colon-separated list of header field names that identify the header fields presented to the signing algorithm. In scalar context, the list of header field names will be returned as a single string, with the names joined together with colons. In list context, the header field names will be returned as a list. identity() - get or set the signing identity (i=) field my $i = $signature->identity; Identity of the user or agent on behalf of which this message is signed. The identity has an optional local part, followed by "@", then a domain name. The domain name should be the same as or a subdomain of the domain returned by the domain method. Ideally, the identity should match the identity listed in the From: header, or the Sender: header, but this is not required to have a valid signature. Whether the identity used is "authorized" to sign for the given message is not determined here. method() - get or set the canonicalization (c=) field Message canonicalization (default is "simple"). This informs the verifier of the type of canonicalization used to prepare the message for signing. protocol() - get or set the query methods (q=) field A colon-separated list of query methods used to retrieve the public key (default is "dns"). Each query method is of the form "type[/options]", where the syntax and semantics of the options depends on the type. selector() - get or set the selector (s=) field The selector subdivides the namespace for the "d=" (domain) tag. data() - get or set the signature data (b=) field my $base64 = $signature->data; $signature->data($base64); The signature data. Whitespace is automatically stripped from the returned value. The data is Base64-encoded. prettify() - alters the signature to look "nicer" as an email header $signature->prettify; This method may alter the signature in a way that breaks signatures, so it should be done ONLY when the signature is being generated, BEFORE being fed to the canonicalization algorithm. prettify_safe() - same as prettify() but only touches the b= part $signature->prettify_safe; This method will not break the signature, but it only affects the b= part of the signature. timestamp() - get or set the signature timestamp (t=) field Signature timestamp (default is undef, meaning unknown creation time). This is the time that the signature was created. The value is an unsigned integer identifying the number of standard Unix seconds-since-1970. version() - get or set the DKIM specification version (v=) field This is the version of the DKIM specification that applies to this signature record..

Requirements: No special requirements
Platforms: Linux
Keyword: Algorithm Canonicalization Dkim Signature Domain Field Header Libraries Maildkimsignature Programming Public Key Signature Used To
Users rating: 0/10

License: Freeware Size: 47.1 KB
More Reviews or Write Review

Libraries  -  Mail::DKIM::DkSignature 0.28
Mail::DKIM::DkSignature is a DomainKeys signature header. CONSTRUCTORS parse() - create a new signature from a DomainKey-Signature header my $sig = parse Mail::DKIM::DkSignature( "DomainKey-Signature: a=rsa-sha1; b=yluiJ7+0=; c=nofws" );...
51.2 KB  
Programming  -  Bake 1.0
Bake is a small domain specific programming language for describing how to transform one file into another. Bake uses the typical topological sort, but has features that make describing this relatively easy. Bake has patterns, similar to make,...
94.21 KB  
Modules  -  CCK Table Field 7.x-1.0
This module adds a CCK table field type that lets you add a table display to any content type without having to manually enter HTML. It currently parses text data to form the header and row content, but the goal is to accomplish the data entry...
10 KB  
Utilities  -  sign 1.0.7
sign is a file signing and signature verification utility. Its main purpose is to be a simple and convenient extension to a tar/gz/bzip2 line of tools to check file integrity and authenticity. Its small and simple, it does just one thing and...
27.65 KB  
Libraries  -  Validate_fields Class 1.34
Validate_fields Class is an easy-to-use form field validation PHP script. This class can be used to validate database inputs or mail forms. It can validate simple text, numbers, dates, urls, email addresses, and the presence of HTML tags....
8.19 KB  
Misc. Web Browser Tools  -  Domain 1.0
Domain tools for easy checking of the things you need to know about a domain and an easy way to register free or related domains and being up to date on the latest news around internet
1.71 MB  
Modules  -  FT Signature Manager 1.3
Authors can set a global option to have their signature on or off by default, or they can manually choose to include it when editing a post. InstallationUnpack and upload it to the /wp-content/plugins/ directory.Activate the plugin through the...
Development Tools  -  Pattern search method: deterministic iterative zero order algorithm 1.0
It's a deterministic iterative zero order algorithm that can be used to solve unconstrained optimization problem. It finds the relative minimum of a two variables function with a deterministic iterative zero order algorithm. Pattern search method...
10 KB  
Development Tools  -  Fuzzy Logic of PUMA 560 Robot 1.0
Fuzzy control algorithm is used to control a three degree of freedom PUMA560 robot. The robot dynamics are taken from:Brian Armstrong, Oussama Khatib & Joel Burdick , d-deDUThe Explicit Dynamic Model and Inertial Parameters of the PUMA 560...
235.52 KB  
Networking  -  WordPress Tumblr AJAX Widget 1.0
WordPress Tumblr AJAX Widget creates a widget you can use in your blog that would draw posts from a Tumblr blog feed andInstallation : 1. Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress...
10 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 3.15.3
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB