OpenSSL::Digest(3)

NAME
OpenSSL::Digest -- Access to OpenSSL digest functions

SYNOPSIS
        use OpenSSL::Digest;

DESCRIPTION
        Foo/bar.

FUNCTIONS

@digs = enum_digest();
    Returns a list of supported digest. (sha1, md5, md2, md4, sha, mdc2, ripemd160, dss, dss1)

$hexdigest = digest_hex($digname, $string, ...)
    returns $digname digest over $string hex encoded

$bindigest = digest($digname, $string, ...)
    returns $digname digest over $string raw

$base64_digest = digest_base64($digname, $string, ...)
    returns $digname digest over $string base64 encoded

$hex_digest =  {digestname}_hex($string)
    Direct access to low level function.

$raw_digest =  {digestname}($string)
    Direct access to low level function.

$base64_digest =  {digestname}_base64($string)
    Direct access to low level function.

$ctx = {digestname}_new
    Access to classical stream based approach.

$ctx = new_digest($digname)
    Access to classical stream based approach.

$ctx->update($string)
    Adds $string to the digest

$ctx->final
    Returns the digest raw.

$ctx->final_hex
    Returns the digest hex encoded.

$ctx->final_base64
    Returns the digest base64 encoded.

SEE ALSO
OpenSSL, OpenSSL::HMAC.

AUTHOR
Stefan Traby <stefan@hello-penguin.com> http://mindterm.plan9.de/