RDFStore::Util::Digest - Utility library to manage SHA-1 cryptographic digests


RDFStore documentation Contained in the RDFStore distribution.

Index


Code Index:

NAME

Top

RDFStore::Util::Digest - Utility library to manage SHA-1 cryptographic digests

SYNOPSIS

Top

	use RDFStore::Util::Digest;
	if( getDigestAlgorithm() eq 'SHA-1' ) {
		my $sha1_digest = computeDigest( $string );
		};

DESCRIPTION

Top

Simple SHA-1 cryptographic digest generator

METHODS

Top

computeDigest ( STRING )

Return binary formatted cryptographic digest of give STRING

getDigestAlgorithm ()

Return 'SHA-1' - no other cryto method implemented for the moment

SEE ALSO

Top

 Digest(1) Digest::SHA1(3)

AUTHOR

Top

	Alberto Reggiori <areggiori@webweaving.org>



RDFStore documentation Contained in the RDFStore distribution.

# *
# *     Copyright (c) 2000-2006 Alberto Reggiori <areggiori@webweaving.org>
# *                        Dirk-Willem van Gulik <dirkx@webweaving.org>
# *
# * NOTICE
# *
# * This product is distributed under a BSD/ASF like license as described in the 'LICENSE'
# * file you should have received together with this source code. If you did not get a
# * a copy of such a license agreement you can pick up one at:
# *
# *     http://rdfstore.sourceforge.net/LICENSE
# *
# * Changes:
# *     version 0.1 - Thu Feb  6 18:45:53 CET 2003
# *

package RDFStore::Util::Digest;
{
use strict;
use Carp;
use vars qw($VERSION);

use RDFStore; # load the underlying C code in RDFStore.xs because it is all in one module file

$VERSION = '0.1';

1;
};

__END__