perl5 interface to the RSA Data Security Inc. MD5 Message-Digest Algorithm
This commit is contained in:
parent
04860148c3
commit
b836b50aa4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=4118
5 changed files with 81 additions and 0 deletions
31
security/p5-MD5/Makefile
Normal file
31
security/p5-MD5/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
# New ports collection makefile for: p5-MD5
|
||||
# Version required: 1.7
|
||||
# Date created: September 30th 1996
|
||||
# Whom: James FitzGibbon <jfitz@FreeBSD.org>
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
DISTNAME= MD5-1.7
|
||||
PKGNAME= p5-MD5-1.7
|
||||
CATEGORIES+= security
|
||||
MASTER_SITES= ftp://ftp.digital.com/pub/plan/perl/CPAN/modules/by-module/MD5/ \
|
||||
ftp://ftp.cdrom.com/pub/perl/CPAN/modules/by-module/MD5/ \
|
||||
ftp://ftp.cis.ufl.edu/pub/perl/CPAN/modules/by-module/MD5/ \
|
||||
ftp://ftp.leo.org/pub/comp/programming/languages/perl/CPAN/modules/by-module/MD5/ \
|
||||
ftp://ftp.demon.co.uk/pub/mirrors/perl/CPAN/modules/by-module/MD5/ \
|
||||
ftp://ftp.lab.kdd.co.jp/lang/perl/CPAN/modules/by-module/MD5/
|
||||
|
||||
MAINTAINER= jfitz@FreeBSD.ORG
|
||||
|
||||
BUILD_DEPENDS= perl5.003:${PORTSDIR}/lang/perl5
|
||||
|
||||
do-configure:
|
||||
@ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/perl Makefile.PL
|
||||
|
||||
post-install:
|
||||
.if !defined(NOMANCOMPRESS)
|
||||
@ gzip -9nf ${PREFIX}/lib/perl5/man/man3/MD5.3
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
1
security/p5-MD5/distinfo
Normal file
1
security/p5-MD5/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (MD5-1.7.tar.gz) = 92b07ec19be88163613dde69939eb48a
|
1
security/p5-MD5/pkg-comment
Normal file
1
security/p5-MD5/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
perl5 interface to the RSA Data Security Inc. MD5 Message-Digest Algorithm
|
40
security/p5-MD5/pkg-descr
Normal file
40
security/p5-MD5/pkg-descr
Normal file
|
@ -0,0 +1,40 @@
|
|||
The MD5 module allows you to use the RSA Data Security
|
||||
Inc. MD5 Message Digest algorithm from within Perl
|
||||
programs.
|
||||
|
||||
A new MD5 context object is created with the new
|
||||
operation. Multiple simultaneous digest contexts can be
|
||||
maintained, if desired. The context is updated with the
|
||||
add operation which adds the strings contained in the LIST
|
||||
parameter. Note, however, that add('foo', 'bar'),
|
||||
add('foo') followed by add('bar') and add('foobar') should
|
||||
all give the same result.
|
||||
|
||||
The final message digest value is returned by the digest
|
||||
operation as a 16-byte binary string. This operation
|
||||
delivers the result of add operations since the last new
|
||||
or reset operation. Note that the digest operation is
|
||||
effectively a destructive, read-once operation. Once it
|
||||
has been performed, the context must be reset before being
|
||||
used to calculate another digest value.
|
||||
|
||||
Several convenience functions are also provided. The
|
||||
addfile operation takes an open file-handle and reads it
|
||||
until end-of file in 1024 byte blocks adding the contents
|
||||
to the context. The file-handle can either be specified by
|
||||
name or passed as a type-glob reference, as shown in the
|
||||
examples below. The hexdigest operation calls digest and
|
||||
returns the result as a printable string of hexdecimal
|
||||
digits. This is exactly the same operation as performed by
|
||||
the unpack operation in the examples below.
|
||||
|
||||
The hash operation can act as either a static member
|
||||
function (ie you invoke it on the MD5 class as in the
|
||||
synopsis above) or as a normal virtual function. In both
|
||||
cases it performs the complete MD5 cycle (reset, add,
|
||||
digest) on the supplied scalar value. This is convenient
|
||||
for handling small quantities of data. When invoked on the
|
||||
class a temporary context is created. When invoked through
|
||||
an already created context object, this context is used.
|
||||
The latter form is slightly more efficient. The hexhash
|
||||
operation is analogous to hexdigest.
|
8
security/p5-MD5/pkg-plist
Normal file
8
security/p5-MD5/pkg-plist
Normal file
|
@ -0,0 +1,8 @@
|
|||
lib/perl5/site_perl/i386-freebsd/auto/MD5/MD5.so
|
||||
lib/perl5/site_perl/i386-freebsd/auto/MD5/MD5.bs
|
||||
lib/perl5/site_perl/auto/MD5/autosplit.ix
|
||||
lib/perl5/site_perl/MD5.pm
|
||||
lib/perl5/man/man3/MD5.3.gz
|
||||
lib/perl5/site_perl/i386-freebsd/auto/MD5/.packlist
|
||||
@dirrm lib/perl5/site_perl/i386-freebsd/auto/MD5
|
||||
@dirrm lib/perl5/site_perl/auto/MD5
|
Loading…
Reference in a new issue