CINXE.COM

Digest::Whirlpool - A 512-bit, collision-resistant, one-way hash function - metacpan.org

<!DOCTYPE html> <html lang="en-US"> <head> <title>Digest::Whirlpool - A 512-bit, collision-resistant, one-way hash function - metacpan.org</title> <link rel="preload" as="fetch" href="/account/login_status" crossorigin="anonymous" /> <link href="/assets/style-XFEQ536G.css" rel="stylesheet" type="text/css"> <script src="/assets/main-WXBSEDQJ.js" type="module"></script> <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of Digest-Whirlpool - MetaCPAN" href="/dist/Digest-Whirlpool/releases.rss" /> <link rel="canonical" href="https://metacpan.org/pod/Digest::Whirlpool" /> <meta name="description" content="A 512-bit, collision-resistant, one-way hash function" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5"> <link rel="shortcut icon" href="/static/icons/favicon.ico"> <link rel="apple-touch-icon" sizes="152x152" href="/static/icons/apple-touch-icon.png"> <link rel="search" href="/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN"> <script async src="https://perl-ads.perlhacks.com/perl-ads.js"></script> <script async src="https://www.googletagmanager.com/gtag/js?id=G-E82Q2V8LVD"></script> <meta property="og:site_name" content="MetaCPAN" /> <meta name="twitter:site" content="@metacpan" /> <meta property="og:type" content="article" /> <meta name="twitter:card" content="summary" /> <meta property="og:url" content="https://metacpan.org/pod/Digest::Whirlpool" /> <meta property="og:title" content="Digest::Whirlpool" /> <meta property="og:description" content="A 512-bit, collision-resistant, one-way hash function" /> <meta property="og:image" content="https://metacpan.org/static/images/dots.png" /> </head> <body> <nav class="navbar navbar-default" role="navigation"> <div class="header-logo-large hidden-xs"> <a href="/" tabindex="0"> <svg class="logo" aria-label="MetaCPAN"> <use class="logo" href="/static/images/metacpan-logo.svg#logo" /> </svg> </a> </div> <div class="header-logo-icon visible-xs"> <a href="/"> <svg class="logo" aria-label="MetaCPAN"> <use class="logo" href="/static/images/metacpan-logo.svg#dots" /> </svg> </a> </div> <ul class="nav navbar-nav menu-items hidden-xs hidden-sm"> <li><a href="/about">About</a></li> <li><a href="/about/sponsors">Sponsor</a></li> <li><a href="https://grep.metacpan.org/">grep::cpan</a></li> <li><a href="/recent">Recent</a></li> <li><a href="/about/faq">FAQ</a></li> <li><a href="/tools">Tools</a></li> <li><a href="https://fastapi.metacpan.org/">API</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <button type="button" class="searchbar-btn visible-xs visible-sm"> <i class="fa fa-search button-fa-icon"></i> </button> <form action="/search" class="searchbar-form visible-md visible-lg search-form form-horizontal"> <input type="hidden" name="size" id="metacpan_search-size" value="20"> <div class="form-group"> <div class="search-group"> <i class="fa fa-search"></i> <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value=""> </div> </div> </form> <li class="icon-slidepanel visible-xs visible-sm"> <button data-toggle="slidepanel" data-target=".slidepanel"> <span class="button-fa-icon"> <i class="fa fa-bars slidepanel-open"></i> <i class="fa fa-times slidepanel-close"></i> </span> </button> </li> <li class="dropdown login-dropdown show-logged-in"> <button type="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i> <i class="fas fa-chevron-down"></i> </button> <ul class="dropdown-menu"> <li><a href="/account/identities">Identities</a></li> <li><a href="/account/profile">Profile</a></li> <li><a href="/account/favorite/list">Favorites</a></li> <li> <a href="#" type="button" class="logout-button"> Logout </a> </li> </ul> </li> <li class="dropdown login-dropdown show-logged-out"> <button type="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-user button-fa-icon avatar-placeholder" aria-hidden="true"></i> <i class="fas fa-chevron-down"></i> </button> <ul class="dropdown-menu"> <li> <a href="/login/github"> <i class="fab fa-github fa-fw"></i> GitHub </a> </li> <li> <a href="/login/twitter"> <i class="fab fa-twitter fa-fw"></i> Twitter </a> </li> <li> <a href="/login/google"> <i class="fab fa-google fa-fw"></i> Google </a> </li> </ul> </li> <li class="dropdown login-dropdown hide-logged-in hide-logged-out"> <button> <i class="fa fa-user button-fa-icon" aria-hidden="true"></i> </button> </li> </ul> </nav> <div class="page-content "> <div id="perl-ad-target" class="top-notify-banner perl-ad-target"> </div> <nav class="sidebar"> <div class="slidepanel"> <ul class="nav-list "> <li class="nav-header no-margin-top"> <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of Digest-Whirlpool was released."> <span class="relatize">01 Dec 2014 21:20:58 UTC</span> </div> </li> <li> Distribution: <a href="/dist/Digest-Whirlpool">Digest-Whirlpool</a> </li> <li> Module version: 2.04 </li> <li> <a data-keyboard-shortcut="g s" href="/dist/Digest-Whirlpool/source/Whirlpool.pm">Source</a> (<a href="/dist/Digest-Whirlpool/source/Whirlpool.pm?raw=1">raw</a>) </li> <li> <a data-keyboard-shortcut="g b" href="/dist/Digest-Whirlpool/source">Browse</a> (<a href="/dist/Digest-Whirlpool/source?raw=1">raw</a>) </li> <li> <a data-keyboard-shortcut="g c" href="/dist/Digest-Whirlpool/changes">Changes</a> </li> <li> <a rel="noopener nofollow" class="nopopup" href="http://metacpan.org/release/Digest-Whirlpool">Homepage</a> </li> <li> <a class="nopopup" href="/dist/Digest-Whirlpool/contribute">How to Contribute</a> </li> <li> <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/avar/digest-whirlpool">Repository</a> </li> <li> <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://rt.cpan.org/Public/Dist/Display.html?Name=Digest-Whirlpool">Issues</a> (0) </li> <li> <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=Digest-Whirlpool+2.04" title="Matrix">Testers</a> <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/D/Digest-Whirlpool.html?oncpan=1&amp;distmat=1&amp;version=2.04&amp;grade=2" style="color: #090">38</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/D/Digest-Whirlpool.html?oncpan=1&amp;distmat=1&amp;version=2.04&amp;grade=3" style="color: #900">0</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/D/Digest-Whirlpool.html?oncpan=1&amp;distmat=1&amp;version=2.04&amp;grade=4">0</a>)</span> </li> <li> <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/AVAR/Digest-Whirlpool-2.04">Kwalitee</a> </li> <li> <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on Digest-Whirlpool who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)"> Bus factor: 0 </div> </li> <li> <a rel="noopener nofollow" href="http://cpancover.com/latest/Digest-Whirlpool-2.04/index.html">100.00% Coverage </a> </li> <li> License: perl_5 </li> <li class="nav-header">Activity</li> <li> <div class="activity-graph"> <img src="/dist/Digest-Whirlpool/activity.svg?res=month" /> <div class="comment">24 month</div> </div> </li> <li class="nav-header">Tools</li> <li> <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/A/AV/AVAR/Digest-Whirlpool-2.04.tar.gz"> Download (<span itemprop="fileSize">104.85KB</span>)</a> </li> <li> <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FAVAR%2FDigest-Whirlpool-2.04%2FWhirlpool.pm"> MetaCPAN Explorer </a> </li> <li> <a href="/dist/Digest-Whirlpool/permissions"> Permissions </a> </li> <li> <a href="/dist/Digest-Whirlpool/releases.rss"> Subscribe to distribution </a> </li> <li> <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog"> Install Instructions </button> </li> <li> <form action="/search"> <input type="hidden" name="q" value="dist:Digest-Whirlpool"> <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form"> <input type="submit" style="display: none"> </form> </li> <li> <form action="https://grep.metacpan.org/search"> <input type="hidden" name="qd" value="Digest-Whirlpool"> <input type="hidden" name="source" value="metacpan"> <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form"> <input type="submit" style="display: none"> </form> </li> <li class="version-jump"> <select class="select-navigator form-control tool-bar-form"> <option disabled selected>Jump to version</option> <option disabled value="/release/AVAR/Digest-Whirlpool-2.04/view/Whirlpool.pm" >2.04 (AVAR on 2014-12-01)</option> <option value="/release/AVAR/Digest-Whirlpool-2.03/view/Whirlpool.pm" >2.03 (AVAR on 2014-10-05)</option> <option value="/release/AVAR/Digest-Whirlpool-2.02/view/Whirlpool.pm" >2.02 (AVAR on 2014-10-05)</option> <option value="/release/AVAR/Digest-Whirlpool-2.01/view/Whirlpool.pm" >2.01 (AVAR on 2014-10-04)</option> <option value="/release/AVAR/Digest-Whirlpool-2.00/view/Whirlpool.pm" >2.00 (AVAR on 2014-10-04)</option> <option value="/release/AVAR/Digest-Whirlpool-1.0.10/view/Whirlpool.pm" >1.0.10 (AVAR on 2014-10-04)</option> <option value="/release/AVAR/Digest-Whirlpool-1.0.9/view/Whirlpool.pm" >1.0.9 (AVAR on 2014-10-04)</option> <option value="/release/AVAR/Digest-Whirlpool-1.09/view/Whirlpool.pm" >1.09 (AVAR on 2009-10-19)</option> <option value="/release/JCDUQUE/Digest-Whirlpool-1.0.3/view/Whirlpool.pm" >1.0.3 (JCDUQUE on 2004-08-18)</option> <option value="/release/JCDUQUE/Digest-Whirlpool-1.0.2/view/Whirlpool.pm" >1.0.2 (JCDUQUE on 2003-07-29)</option> <optgroup label="BackPAN">' <option value="/release/AVAR/Digest-Whirlpool-1.0.8/view/Whirlpool.pm" >1.0.8 (AVAR on 2009-10-18)</option> <option value="/release/AVAR/Digest-Whirlpool-1.0.7/view/Whirlpool.pm" >1.0.7 (AVAR on 2009-10-18)</option> <option value="/release/AVAR/Digest-Whirlpool-1.0.6/view/Whirlpool.pm" >1.0.6 (AVAR on 2007-07-07)</option> <option value="/release/AVAR/Digest-Whirlpool-1.0.5/view/Whirlpool.pm" >1.0.5 (AVAR on 2007-01-30)</option> <option value="/release/AVAR/Digest-Whirlpool-1.0.4/view/Whirlpool.pm" >1.0.4 (AVAR on 2007-01-26)</option> <option value="/release/JCDUQUE/Digest-Whirlpool-1.0.1/view/Whirlpool.pm" >1.0.1 (JCDUQUE on 2003-06-09)</option> <option value="/release/JCDUQUE/Digest-Whirlpool-1.0.0/view/Whirlpool.pm" >1.0.0 (JCDUQUE on 2003-06-07)</option> </optgroup> </select> </li> <li class="version-diff"> <select class="select-navigator form-control tool-bar-form"> <option disabled selected>Diff with version</option> <option disabled value="/release/AVAR/Digest-Whirlpool-2.04/diff/AVAR/Digest-Whirlpool-2.04/Whirlpool.pm" >2.04 (AVAR on 2014-12-01)</option> <option value="/release/AVAR/Digest-Whirlpool-2.04/diff/AVAR/Digest-Whirlpool-2.03/Whirlpool.pm" >2.03 (AVAR on 2014-10-05)</option> <option value="/release/AVAR/Digest-Whirlpool-2.04/diff/AVAR/Digest-Whirlpool-2.02/Whirlpool.pm" >2.02 (AVAR on 2014-10-05)</option> <option value="/release/AVAR/Digest-Whirlpool-2.04/diff/AVAR/Digest-Whirlpool-2.01/Whirlpool.pm" >2.01 (AVAR on 2014-10-04)</option> <option value="/release/AVAR/Digest-Whirlpool-2.04/diff/AVAR/Digest-Whirlpool-2.00/Whirlpool.pm" >2.00 (AVAR on 2014-10-04)</option> <option value="/release/AVAR/Digest-Whirlpool-2.04/diff/AVAR/Digest-Whirlpool-1.0.10/Whirlpool.pm" >1.0.10 (AVAR on 2014-10-04)</option> <option value="/release/AVAR/Digest-Whirlpool-2.04/diff/AVAR/Digest-Whirlpool-1.0.9/Whirlpool.pm" >1.0.9 (AVAR on 2014-10-04)</option> <option value="/release/AVAR/Digest-Whirlpool-2.04/diff/AVAR/Digest-Whirlpool-1.09/Whirlpool.pm" >1.09 (AVAR on 2009-10-19)</option> <option value="/release/AVAR/Digest-Whirlpool-2.04/diff/JCDUQUE/Digest-Whirlpool-1.0.3/Whirlpool.pm" >1.0.3 (JCDUQUE on 2004-08-18)</option> <option value="/release/AVAR/Digest-Whirlpool-2.04/diff/JCDUQUE/Digest-Whirlpool-1.0.2/Whirlpool.pm" >1.0.2 (JCDUQUE on 2003-07-29)</option> <optgroup label="BackPAN">' <option value="/release/AVAR/Digest-Whirlpool-2.04/diff/AVAR/Digest-Whirlpool-1.0.8/Whirlpool.pm" >1.0.8 (AVAR on 2009-10-18)</option> <option value="/release/AVAR/Digest-Whirlpool-2.04/diff/AVAR/Digest-Whirlpool-1.0.7/Whirlpool.pm" >1.0.7 (AVAR on 2009-10-18)</option> <option value="/release/AVAR/Digest-Whirlpool-2.04/diff/AVAR/Digest-Whirlpool-1.0.6/Whirlpool.pm" >1.0.6 (AVAR on 2007-07-07)</option> <option value="/release/AVAR/Digest-Whirlpool-2.04/diff/AVAR/Digest-Whirlpool-1.0.5/Whirlpool.pm" >1.0.5 (AVAR on 2007-01-30)</option> <option value="/release/AVAR/Digest-Whirlpool-2.04/diff/AVAR/Digest-Whirlpool-1.0.4/Whirlpool.pm" >1.0.4 (AVAR on 2007-01-26)</option> <option value="/release/AVAR/Digest-Whirlpool-2.04/diff/JCDUQUE/Digest-Whirlpool-1.0.1/Whirlpool.pm" >1.0.1 (JCDUQUE on 2003-06-09)</option> <option value="/release/AVAR/Digest-Whirlpool-2.04/diff/JCDUQUE/Digest-Whirlpool-1.0.0/Whirlpool.pm" >1.0.0 (JCDUQUE on 2003-06-07)</option> </optgroup> </select> </li> <li> <ul class="dependencies"> <li class="nav-header">Dependencies</li> <li><a href="/pod/Digest" title="Digest" class="ellipsis">Digest</a></li> <li><a href="/pod/Digest::base" title="Digest::base" class="ellipsis">Digest::base</a></li> <li><a href="/pod/Getopt::Long" title="Getopt::Long" class="ellipsis">Getopt::Long</a></li> <li><a href="/pod/MIME::Base64" title="MIME::Base64" class="ellipsis">MIME::Base64</a></li> <li><a href="/pod/Pod::Usage" title="Pod::Usage" class="ellipsis">Pod::Usage</a></li> <li><i class="ttip" title="dynamic_config enabled">and possibly others</i></li> <li> <hr> </li> <li> <a href="/module/Digest::Whirlpool/requires">Reverse dependencies</a> </li> <li> <a href="http://deps.cpantesters.org/?module=Digest%3A%3AWhirlpool">CPAN Testers List</a> </li> <li> <a href="https://cpandeps.grinnz.com/?dist=Digest-Whirlpool">Dependency graph</a> </li> </ul> </li> <li class="nav-header">Permalinks</li> <li> <a href="/release/AVAR/Digest-Whirlpool-2.04/view/Whirlpool.pm">This version</a> </li> <li> <a href="/pod/Digest::Whirlpool">Latest version</a> </li> <li> <div class="plussers"> <div class="nav-header">++ed by:</div> <div> <a class="display-all" href="/author/KRAUTCAT"><img src="https://www.gravatar.com/avatar/efd137d1577aa9df7fc833f6306958d5?d=identicon&amp;s=20" title="KRAUTCAT" alt="KRAUTCAT"></a> </div> <!-- Display counts of plussers--> <div> <a href="/dist/Digest-Whirlpool/plussers">1 PAUSE user</a> </div> </div> </li> <li> </li> </ul> </div> </nav> <div class="content-navigation"> <div class="breadcrumbs"> <span> <a data-keyboard-shortcut="g a" rel="author" href="/author/AVAR" class="author-name">Ævar Arnfjörð Bjarmason</a> </span> <span>&nbsp;/&nbsp;</span> <div class="release dist-release status-latest maturity-released"> <span class="dropdown"><b class="caret"></b></span> <select class="select-navigator "> <option selected value="/release/AVAR/Digest-Whirlpool-2.04/view/Whirlpool.pm" >2.04 (AVAR on 2014-12-01)</option> <option value="/release/AVAR/Digest-Whirlpool-2.03/view/Whirlpool.pm" >2.03 (AVAR on 2014-10-05)</option> <option value="/release/AVAR/Digest-Whirlpool-2.02/view/Whirlpool.pm" >2.02 (AVAR on 2014-10-05)</option> <option value="/release/AVAR/Digest-Whirlpool-2.01/view/Whirlpool.pm" >2.01 (AVAR on 2014-10-04)</option> <option value="/release/AVAR/Digest-Whirlpool-2.00/view/Whirlpool.pm" >2.00 (AVAR on 2014-10-04)</option> <option value="/release/AVAR/Digest-Whirlpool-1.0.10/view/Whirlpool.pm" >1.0.10 (AVAR on 2014-10-04)</option> <option value="/release/AVAR/Digest-Whirlpool-1.0.9/view/Whirlpool.pm" >1.0.9 (AVAR on 2014-10-04)</option> <option value="/release/AVAR/Digest-Whirlpool-1.09/view/Whirlpool.pm" >1.09 (AVAR on 2009-10-19)</option> <option value="/release/JCDUQUE/Digest-Whirlpool-1.0.3/view/Whirlpool.pm" >1.0.3 (JCDUQUE on 2004-08-18)</option> <option value="/release/JCDUQUE/Digest-Whirlpool-1.0.2/view/Whirlpool.pm" >1.0.2 (JCDUQUE on 2003-07-29)</option> <optgroup label="BackPAN">' <option value="/release/AVAR/Digest-Whirlpool-1.0.8/view/Whirlpool.pm" >1.0.8 (AVAR on 2009-10-18)</option> <option value="/release/AVAR/Digest-Whirlpool-1.0.7/view/Whirlpool.pm" >1.0.7 (AVAR on 2009-10-18)</option> <option value="/release/AVAR/Digest-Whirlpool-1.0.6/view/Whirlpool.pm" >1.0.6 (AVAR on 2007-07-07)</option> <option value="/release/AVAR/Digest-Whirlpool-1.0.5/view/Whirlpool.pm" >1.0.5 (AVAR on 2007-01-30)</option> <option value="/release/AVAR/Digest-Whirlpool-1.0.4/view/Whirlpool.pm" >1.0.4 (AVAR on 2007-01-26)</option> <option value="/release/JCDUQUE/Digest-Whirlpool-1.0.1/view/Whirlpool.pm" >1.0.1 (JCDUQUE on 2003-06-09)</option> <option value="/release/JCDUQUE/Digest-Whirlpool-1.0.0/view/Whirlpool.pm" >1.0.0 (JCDUQUE on 2003-06-07)</option> </optgroup> </select> <a data-keyboard-shortcut="g d" class="release-name" href="/dist/Digest-Whirlpool">Digest-Whirlpool-2.04</a> </div> <span class="river-gauge-gauge"> <svg width="24px" height="15px" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <g> <title> River stage one &#10; • 1 direct dependent &#10; • 1 total dependent </title> <rect x="0" y="0" width="4" height="15" fill="#7ea3f2" /> <rect x="5" y="0" width="4" height="15" fill="#e4e2e2" /> <rect x="10" y="0" width="4" height="15" fill="#e4e2e2" /> <rect x="15" y="0" width="4" height="15" fill="#e4e2e2" /> <rect x="20" y="0" width="4" height="15" fill="#e4e2e2" /> </g> </svg> </span> <div id="Digest-Whirlpool-fav" class="show-logged-in"> <form action="/account/favorite/add" style="display: inline" method="POST"> <input type="hidden" name="remove" value="0"> <input type="hidden" name="release" value="Digest-Whirlpool-2.04"> <input type="hidden" name="author" value="AVAR"> <input type="hidden" name="distribution" value="Digest-Whirlpool"> <button type="submit" class="favorite highlight"><span>1</span> ++</button> </form> </div> <div class="show-logged-out"> <button class="fav-not-logged-in favorite highlight"><span>1</span> ++</button> </div> / <span>Digest::Whirlpool</span> </div> </div> <main class="content"> <nav class="toc"> <div class="toc-header"><strong>Contents</strong></div> <ul> <li><a href="#NAME">NAME</a></li> <li><a href="#ABSTRACT">ABSTRACT</a></li> <li><a href="#SYNOPSIS">SYNOPSIS</a></li> <li><a href="#DESCRIPTION">DESCRIPTION</a></li> <li><a href="#EXPORT">EXPORT</a></li> <li><a href="#METHODS">METHODS</a> <ul> <li><a href="#clone">clone</a></li> <li><a href="#reset">reset</a></li> <li><a href="#base64digest">base64digest</a></li> <li><a href="#hashsize">hashsize</a></li> </ul> </li> <li><a href="#SEE-ALSO">SEE ALSO</a></li> <li><a href="#AUTHORS-%26-HISTORY">AUTHORS &amp; HISTORY</a></li> <li><a href="#BUGS">BUGS</a></li> <li><a href="#LICENSE">LICENSE</a></li> </ul></nav> <div class="pod anchors"> <h1 id="NAME">NAME</h1> <p>Digest::Whirlpool - A 512-bit, collision-resistant, one-way hash function</p> <h1 id="ABSTRACT">ABSTRACT</h1> <p>WHIRLPOOL is a 512-bit, collision-resistant, one-way hash function developed by Paulo S. L. M. Barreto and Vincent Rijmen. It has been recommended by the NESSIE project (along with SHA-256/384/512) and adopted as ISO/IEC 10118-3.</p> <h1 id="SYNOPSIS">SYNOPSIS</h1> <p>In programs:</p> <pre><code># Using L&lt;Digest&gt; (recommended) use Digest; my $whirlpool = Digest-&gt;new( &#39;Whirlpool&#39; ); # Get a hash and reset the object $whirlpool-&gt;add( &quot;hash this&quot; ); my $hexdigest = $whirlpool-&gt;hexdigest; # Populate the object again, and clone it before getting the # digest to avoid resetting $whirlpool-&gt;add( &quot;hash this&quot; ); my $b64digest = $whirlpool-&gt;clone-&gt;b64digest; $whirlpool-&gt;add( &quot;add this to the hash&quot; ); # Using this module directly (same interface) use Digest::Whirlpool; my $whirlpool = Digest-&gt;new( &#39;Whirlpool&#39; ); $whirlpool-&gt;add( ... ); ....</code></pre> <p>From the command line:</p> <pre><code>whirlpoolsum files whirlpoolsum --help</code></pre> <h1 id="DESCRIPTION">DESCRIPTION</h1> <p>Provides an interface to the WHIRLPOOL hash algorithm. This module subclasses <a href="/pod/Digest::base">Digest::base</a> and can be used either directly or through the <a href="/pod/Digest">Digest</a> meta-module. Using the latter is recommended.</p> <h1 id="EXPORT">EXPORT</h1> <p>None.</p> <h1 id="METHODS">METHODS</h1> <p>Since this module implements the standard <a href="/pod/Digest#OO-INTERFACE">Digest interface</a> and should be used through the <a href="/pod/Digest">Digest</a> module you should look at that documentation for the general interface, below is a description of methods that differ.</p> <h2 id="clone">clone</h2> <p>Copy the internal state of the current object into a new object and return it.</p> <h2 id="reset">reset</h2> <p>Resets the object to the same internal state it was in when it was constructed.</p> <p>This works exactly like <a href="#new">&quot;new&quot;</a> except it doesn&#39;t allocate new memory for its internal state.</p> <h2 id="base64digest">base64digest</h2> <p>An legacy alias for the <b>b64digest</b> method which should be used instead.</p> <h2 id="hashsize">hashsize</h2> <p>Returns the size (in bits) of a WHIRLPOOL hash, i.e. 512.</p> <h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1> <ul> <li><p>NESSIE consortium, <i>Portfolio of recommended cryptographic primitives</i>, February 27, 2003.</p> </li> <li><p><a href="http://paginas.terra.com.br/informatica/paulobarreto/WhirlpoolPage.html">http://paginas.terra.com.br/informatica/paulobarreto/WhirlpoolPage.html</a></p> </li> </ul> <h1 id="AUTHORS-&amp;-HISTORY"><a id="AUTHORS"></a><a id="AUTHORS-HISTORY"></a>AUTHORS &amp; HISTORY</h1> <p>The original version of this package was written by Julius C. Duque in 2003. It was rewritten by &AElig;var Arnfj&ouml;r&eth; Bjarmason &lt;avar@cpan.org&gt; in January 2007 who added compatability with the Digest interface, improved documentation and a <a href="http://man.he.net/man1/whirlpoolsum">whirlpoolsum(1)</a> command-line utility amongst other things.</p> <h1 id="BUGS">BUGS</h1> <p>Please report any bugs that aren&#39;t already listed at <a href="http://rt.cpan.org/Dist/Display.html?Queue=Digest-Whirlpool">http://rt.cpan.org/Dist/Display.html?Queue=Digest-Whirlpool</a> to <a href="http://rt.cpan.org/Public/Bug/Report.html?Queue=Digest-Whirlpool">http://rt.cpan.org/Public/Bug/Report.html?Queue=Digest-Whirlpool</a></p> <h1 id="LICENSE">LICENSE</h1> <p>This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.</p> <p>Copyright 2003 Julius C. Duque and 2007 and 2009 &AElig;var Arnfj&ouml;r&eth; Bjarmason.</p></div> <div id="metacpan_install-instructions-dialog" class="modal fade"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <h4 class="modal-title">Module Install Instructions</h4> </div> <div class="modal-body"> <p>To install Digest::Whirlpool, copy and paste the appropriate command in to your terminal.</p> <p><a href="/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p> <pre><code>cpanm Digest::Whirlpool</code></pre> <p><a href="/pod/CPAN">CPAN shell</a></p> <pre><code>perl -MCPAN -e shell install Digest::Whirlpool</code></pre> <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p> </div> <div class="modal-footer"> <a href="#" data-dismiss="modal" class="btn">Close</a> </div> </div> </div> </div> </main> <div class="content-pagination"> </div> </div> <footer class="footer"> <div class="footer-container"> <div class="footer-social"> <div class="footer-link footer-logo"> <a href="/"> <img src="/static/images/metacpan-logo.svg" alt="MetaCPAN" /> </a> </div> <a class="footer-social-link" href="https://github.com/metacpan"> <i class="fab fa-github-square"></i> </a> <a class="footer-social-link" href="https://fosstodon.org/@metacpan"> <i class="fab fa-mastodon"></i> </a> </div> <div class="footer-links"> <div class="footer-link"> <a href="/about">About</a> </div> <div class="footer-link"> <a href="/about/sponsors">Sponsor</a> </div> <div class="footer-link"> <a href="https://grep.metacpan.org">grep::cpan</a> </div> <div class="footer-link"> <a href="/recent">Recent</a> </div> <div class="footer-link"> <a href="/about/faq">FAQ</a> </div> <div class="footer-link"> <a href="/tools">Tools</a> </div> <div class="footer-link"> <a href="https://fastapi.metacpan.org/">API</a> </div> <div class="footer-link"> <a href="https://www.perl.org/">Perl.org</a> </div> </div> <div class="footer-sponsors"> <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener"> <img class="footer-sponsor-bytemark" src="/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo"> </a> <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener"> <img class="footer-sponsor-liquidweb" src="/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo"> </a> <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener"> <img class="footer-sponsor-deriv" src="/static/images/sponsors/deriv.svg" alt="Deriv logo"> </a> <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener"> <img class="footer-sponsor-geocode" src="/static/images/sponsors/geocodelogo.svg" alt="Geocode logo"> </a> <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener"> <img class="footer-sponsor-fastly" src="/static/images/sponsors/fastly_logo.svg" alt="Fastly logo"> </a> <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener"> <img class="footer-sponsor-opencage" src="/static/images/sponsors/open-cage.svg" alt="OpenCage logo"> </a> <!-- Added 2024-07-22 --> <a class="footer-sponsor-link" target="_blank" href="https://www.elastic.co/" rel="noopener"> <img class="footer-sponsor-elastic" src="/static/images/sponsors/elastic.svg" alt="Elastic logo"> </a> <!-- Added 2024-07-22 --> <a class="footer-sponsor-link" target="_blank" href="https://route4me.com/" rel="noopener"> <img class="footer-sponsor-route4me" src="/static/images/sponsors/route4me.png" alt="Route4Me logo"> </a> </div> </div> </footer> <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">&times;</button> <h4 class="modal-title">Keyboard Shortcuts</h4> </div> <div class="modal-body row"> <div class="col-md-6"> <table class="table keyboard-shortcuts"> <thead> <tr> <th></th> <th>Global</th> </tr> </thead> <tbody> <tr> <td class="keys"> <kbd>s</kbd> </td> <td>Focus search bar</td> </tr> <tr> <td class="keys"> <kbd>?</kbd> </td> <td>Bring up this help dialog</td> </tr> </tbody> </table> <table class="table keyboard-shortcuts"> <thead> <tr> <th></th> <th>GitHub</th> </tr> </thead> <tbody> <tr> <td class="keys"> <kbd>g</kbd> <kbd>p</kbd> </td> <td>Go to pull requests</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>i</kbd> </td> <td>go to github issues (only if github is preferred repository)</td> </tr> </tbody> </table> </div> <div class="col-md-6"> <table class="table keyboard-shortcuts"> <thead> <tr> <th></th> <th>POD</th> </tr> </thead> <tbody> <tr> <td class="keys"> <kbd>g</kbd> <kbd>a</kbd> </td> <td>Go to author</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>c</kbd> </td> <td>Go to changes</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>i</kbd> </td> <td>Go to issues</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>d</kbd> </td> <td>Go to dist</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>r</kbd> </td> <td>Go to repository/SCM</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>s</kbd> </td> <td>Go to source</td> </tr> <tr> <td class="keys"> <kbd>g</kbd> <kbd>b</kbd> </td> <td>Go to file browse</td> </tr> </tbody> </table> </div> <div class="col-md-12"> <table class="table keyboard-shortcuts"> <thead> <tr> <th></th> <th>Search terms</th> </tr> </thead> <tbody> <tr> <td><em>module:</em> (e.g. <a href="/search?q=module%3APlugin">module:Plugin</a>)</td> </tr> <tr> <td><em>distribution:</em> (e.g. <a href="/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td> </tr> <tr> <td><em>author:</em> (e.g. <a href="/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td> </tr> <tr> <td><em>version:</em> (e.g. <a href="/search?q=version%3A1.00">version:1.00</a>)</td> </tr> </tbody> </table> </div> </div> <div class="modal-footer"></div> </div> </div> </div> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10