Al Newkirk > Bubblegum-0.19 > Bubblegum::Wrapper::Digest

Download:
Bubblegum-0.19.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.19   Source   Latest Release: Bubblegum-0.44

NAME ^

Bubblegum::Wrapper::Digest - Bubblegum Wrapper around Hashing Algorithms

VERSION ^

version 0.19

SYNOPSIS ^

    use Bubblegum;

    my $data = '...';
    $data->digest->encode;

DESCRIPTION ^

Bubblegum::Wrapper::Digest is a Bubblegum wrapper which provides access to various hashing algorithms to encode/decode messages. It is not necessary to use this module as it is loaded automatically by the Bubblegum class.

METHODS ^

encode

The encode method encodes the subject using the hashing algorithm specified, the default hashing algorithm is md5_hex;

    my $data = '...';
    $data->digest->encode;
    $data->digest->encode('md5_hex'); #same
    $data->digest->encode('md5');
    $data->digest->encode('sha1');
    $data->digest->encode('sha1_base64');
    $data->digest->encode('sha1_hex');
    $data->digest->encode('hmac_sha1');
    $data->digest->encode('hmac_sha1_hex');

AUTHOR ^

Al Newkirk <anewkirk@ana.io>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Al Newkirk.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: