NAME
Bubblegum::Wrapper::Digest - Bubblegum Wrapper around Hashing Algorithms
VERSION
version 0.21
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.