Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Template::Plugin::Digest::MD5 0.03

    Download button

    No screenshots available
    Downloads: 307  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Andrew Ford | More programs
    Perl Artistic License / FREE
    April 7th, 2007, 05:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Template::Plugin::Digest::MD5 description

    A TT2 interface to the MD5 Algorithm

    Template::Plugin::Digest::MD5 is a TT2 interface to the MD5 Algorithm.

    SYNOPSIS

    [% USE Digest.MD5 -%]
    [% checksum = content FILTER md5 -%]
    [% checksum = content FILTER md5_hex -%]
    [% checksum = content FILTER md5_base64 -%]
    [% checksum = content.md5 -%]
    [% checksum = content.md5_hex -%]
    [% checksum = content.md5_base64 -%]

    The Digest.MD5 Template Toolkit plugin provides access to the MD5 algorithm via the Digest::MD5 module. It is used like a plugin but installs filters and vmethods into the current context.

    When you invoke

    [% USE Digest.MD5 %]

    the following filters (and vmethods of the same name) are installed into the current context:

    md5

    Calculate the MD5 digest of the input, and return it in binary form. The returned string will be 16 bytes long.

    md5_hex

    Same as md5, but will return the digest in hexadecimal form. The length of the returned string will be 32 and it will only contain characters from this set: '0'..'9' and 'a'..'f'.

    md5_base64

    Same as md5, but will return the digest as a base64 encoded string. The length of the returned string will be 22 and it will only contain characters from this set: 'A'..'Z', 'a'..'z', '0'..'9', '+' and '/'.

    Note that the base64 encoded string returned is not padded to be a multiple of 4 bytes long. If you want interoperability with other base64 encoded md5 digests you might want to append the redundant string "==" to the result.
    As the filters are also available as vmethods the following are all equivalent:

    FILTER md5_hex; content; END;
    content FILTER md5_hex;
    content.md5_base64;



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    TT2 interface | MD5 Algorithm | Perl module | Template | TT2 | interface

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM