1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

PBKDF2 is a secure password hashing algorithm that uses the techniques of

"key strengthening" to make the complexity of a brute-force attack arbitrarily
high. PBKDF2 uses any other cryptographic hash or cipher (by convention,
usually HMAC-SHA1, but Crypt::PBKDF2 is fully pluggable), and allows for an
arbitrary number of iterations of the hashing function, and a nearly unlimited
output hash size (up to 2**32 - 1 times the size of the output of the backend
hash). The hash is salted, as any password hash should be, and the salt may
also be of arbitrary size.

See also: RFC2898, PKCS#5 version 2.0: http://tools.ietf.org/html/rfc2898

WWW:	http://search.cpan.org/dist/Crypt-PBKDF2/

PR:		ports/146847
Submitted by:	Victor Popov <v.a.popov at gmail.com>
This commit is contained in:
Martin Wilke 2010-06-07 06:59:09 +00:00
parent 5a42416447
commit b5b9413196
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=256005
5 changed files with 71 additions and 0 deletions

View File

@ -445,6 +445,7 @@
SUBDIR += p5-Crypt-OpenSSL-RSA
SUBDIR += p5-Crypt-OpenSSL-Random
SUBDIR += p5-Crypt-OpenSSL-X509
SUBDIR += p5-Crypt-PBKDF2
SUBDIR += p5-Crypt-PGPSimple
SUBDIR += p5-Crypt-PassGen
SUBDIR += p5-Crypt-PasswdMD5

View File

@ -0,0 +1,43 @@
# New ports collection makefile for: p5-Crypt-PBKDF2
# Date created: 2010-05-23
# Whom: Victor Popov <v.a.popov@gmail.com>
#
# $FreeBSD$
#
PORTNAME= Crypt-PBKDF2
PORTVERSION= 0.101170
CATEGORIES= security perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= ../by-authors/id/A/AR/ARODLAND
PKGNAMEPREFIX= p5-
MAINTAINER= v.a.popov@gmail.com
COMMENT= The PBKDF2 password hashing algorithm
RUN_DEPENDS= p5-Digest-HMAC>=1.01:${PORTSDIR}/security/p5-Digest-HMAC \
p5-Moose>=1:${PORTSDIR}/devel/p5-Moose \
p5-MooseX-Method-Signatures>=0.30:${PORTSDIR}/devel/p5-MooseX-Method-Signatures \
p5-Try-Tiny>=0.04:${PORTSDIR}/lang/p5-Try-Tiny \
p5-namespace-autoclean>=0:${PORTSDIR}/devel/p5-namespace-autoclean
BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Crypt::PBKDF2.3 \
Crypt::PBKDF2::Hash.3 \
Crypt::PBKDF2::Hash::DigestHMAC.3 \
Crypt::PBKDF2::Hash::HMACSHA1.3 \
Crypt::PBKDF2::Hash::HMACSHA2.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501000
RUN_DEPENDS+= p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA
.endif
.if ${PERL_LEVEL} < 501001
RUN_DEPENDS+= p5-Digest>=1.16:${PORTSDIR}/security/p5-Digest
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,3 @@
MD5 (Crypt-PBKDF2-0.101170.tar.gz) = 1fbf8d79172e03383ad19b994affa441
SHA256 (Crypt-PBKDF2-0.101170.tar.gz) = ff416e3b5f19673af2ca93879639f350e06865065100f1452bb049232d3c0004
SIZE (Crypt-PBKDF2-0.101170.tar.gz) = 13679

View File

@ -0,0 +1,12 @@
PBKDF2 is a secure password hashing algorithm that uses the techniques of
"key strengthening" to make the complexity of a brute-force attack arbitrarily
high. PBKDF2 uses any other cryptographic hash or cipher (by convention,
usually HMAC-SHA1, but Crypt::PBKDF2 is fully pluggable), and allows for an
arbitrary number of iterations of the hashing function, and a nearly unlimited
output hash size (up to 2**32 - 1 times the size of the output of the backend
hash). The hash is salted, as any password hash should be, and the salt may
also be of arbitrary size.
See also: RFC2898, PKCS#5 version 2.0: http://tools.ietf.org/html/rfc2898
WWW: http://search.cpan.org/dist/Crypt-PBKDF2/

View File

@ -0,0 +1,12 @@
@comment $FreeBSD$
%%SITE_PERL%%/Crypt/PBKDF2.pm
%%SITE_PERL%%/Crypt/PBKDF2/Hash.pm
%%SITE_PERL%%/Crypt/PBKDF2/Hash/DigestHMAC.pm
%%SITE_PERL%%/Crypt/PBKDF2/Hash/HMACSHA1.pm
%%SITE_PERL%%/Crypt/PBKDF2/Hash/HMACSHA2.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Crypt/PBKDF2/.packlist
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Crypt/PBKDF2
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Crypt
@dirrmtry %%SITE_PERL%%/Crypt/PBKDF2/Hash
@dirrmtry %%SITE_PERL%%/Crypt/PBKDF2
@dirrmtry %%SITE_PERL%%/Crypt