# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the 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__

=head1 NAME

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

=head1 SYNOPSIS

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

=head1 DESCRIPTION

Simple SHA-1 cryptographic digest generator

=head1 METHODS

=over 4

=item computeDigest ( STRING )

Return binary formatted cryptographic digest of give STRING

=item getDigestAlgorithm ()

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

=head1 SEE ALSO

 Digest(1) Digest::SHA1(3)

=head1 AUTHOR

	Alberto Reggiori <areggiori@webweaving.org>
