Bubblegum::Wrapper::Digest - Bubblegum Wrapper around Hashing Algorithms
version 0.45
use Bubblegum; my $data = '...'; $data->digest->encode;
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.
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');
Al Newkirk <anewkirk@ana.io>
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.
To install Bubblegum, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bubblegum
CPAN shell
perl -MCPAN -e shell install Bubblegum
For more information on module installation, please visit the detailed CPAN module installation guide.