Digest::Skein - Perl interface to the Skein digest algorithm
use Digest::Skein qw/ skein_512 skein_512_hex /; my $digest = skein_512('foo bar baz'); my $hexdigest = skein_512_hex('foo bar baz');
OO interface:
my $digest = Digest::Skein->new(512)->add('foo bar baz')->digest; my $base64 = Digest::Skein->new(512)->add('foo bar baz')->b64digest; # using the Digest API my $hex = Digest->Skein(256)->add('foo bar baz')->hexdigest; my $base64 = Digest->new('Skein')->add('foo bar baz')->b64digest; # default is 512 my $digest = Digest->new('Skein', 512)->add('foo bar baz')->digest; # ...just like here
Digest::Skein implements the Skein digest algorithm (specification v1.2), submitted to NIST for the SHA-3 competition.
This module follows the Digest.pm API. See Digest for more details.
Nothing by default.
skein_256() skein_512() skein_1024() skein_256_hex() skein_512_hex() skein_1024_hex() skein_256_base64() skein_512_base64() skein_1024_base64()
http://www.schneier.com/skein.html, Digest
Radoslaw Zielinski <radek@pld-linux.org>, http://radek.cc/
Copyright (C) 2008 by Radoslaw Zielinski
The core functionality of this library is provided by code written by Niels Ferguson, Stefan Lucks, Bruce Schneier, Doug Whiting, Mihir Bellare, Tadayoshi Kohno, Jon Callas, Jesse Walker; see http://www.schneier.com/skein.html for details.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (GPL).
To install Digest::Skein, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Digest::Skein
CPAN shell
perl -MCPAN -e shell install Digest::Skein
For more information on module installation, please visit the detailed CPAN module installation guide.