Date: Sat, 23 Jan 2016 15:14:24 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r407002 - in head/security: . p5-Bytes-Random-Secure Message-ID: <201601231514.u0NFEOGD049617@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Sat Jan 23 15:14:24 2016 New Revision: 407002 URL: https://svnweb.freebsd.org/changeset/ports/407002 Log: - Add p5-Bytes-Random-Secure 0.29 Bytes::Random::Secure provides two interfaces for obtaining crypto-quality random bytes. The simple interface is built around plain functions. For greater control over the Random Number Generator's seeding, there is an Object Oriented interface that provides much more flexibility. The "functions" interface provides functions that can be used any time you need a string of a specific number of random bytes. The random bytes are available as simple strings, or as hex-digits, Quoted Printable, or MIME Base64. There are equivalent methods available from the OO interface, plus a few others. This module can be a drop-in replacement for Bytes::Random, with the primary enhancement of using a cryptographic-quality random number generator to create the random data. The random_bytes function emulates the user interface of Bytes::Random's function by the same name. But with Bytes::Random::Secure the random number generator comes from Math::Random::ISAAC, and is suitable for cryptographic purposes. The harder problem to solve is how to seed the generator. This module uses Crypt::Random::Seed to generate the initial seeds for Math::Random::ISAAC. WWW: http://search.cpan.org/dist/Bytes-Random-Secure/ Added: head/security/p5-Bytes-Random-Secure/ head/security/p5-Bytes-Random-Secure/Makefile (contents, props changed) head/security/p5-Bytes-Random-Secure/distinfo (contents, props changed) head/security/p5-Bytes-Random-Secure/pkg-descr (contents, props changed) head/security/p5-Bytes-Random-Secure/pkg-plist (contents, props changed) Modified: head/security/Makefile Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Sat Jan 23 15:13:55 2016 (r407001) +++ head/security/Makefile Sat Jan 23 15:14:24 2016 (r407002) @@ -467,6 +467,7 @@ SUBDIR += p5-Authen-Ticket SUBDIR += p5-Authen-TypeKey SUBDIR += p5-Business-PayPal-EWP + SUBDIR += p5-Bytes-Random-Secure SUBDIR += p5-CACertOrg-CA SUBDIR += p5-CSP SUBDIR += p5-Cisco-Hash Added: head/security/p5-Bytes-Random-Secure/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/p5-Bytes-Random-Secure/Makefile Sat Jan 23 15:14:24 2016 (r407002) @@ -0,0 +1,24 @@ +# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= Bytes-Random-Secure +PORTVERSION= 0.29 +CATEGORIES= security perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Generate cryptographically-secure random bytes + +LICENSE= ART10 GPLv1 +LICENSE_COMB= dual + +BUILD_DEPENDS= p5-Crypt-Random-Seed>=0:${PORTSDIR}/security/p5-Crypt-Random-Seed \ + p5-Math-Random-ISAAC>=0:${PORTSDIR}/math/p5-Math-Random-ISAAC +RUN_DEPENDS:= ${BUILD_DEPENDS} + +NO_ARCH= yes +USE_PERL5= configure +USES= perl5 + +.include <bsd.port.mk> Added: head/security/p5-Bytes-Random-Secure/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/p5-Bytes-Random-Secure/distinfo Sat Jan 23 15:14:24 2016 (r407002) @@ -0,0 +1,2 @@ +SHA256 (Bytes-Random-Secure-0.29.tar.gz) = 53bbd339e6a11efca07c619a615c7c188a68bb2be849a1cb7efc3dd4d9ae85ae +SIZE (Bytes-Random-Secure-0.29.tar.gz) = 28007 Added: head/security/p5-Bytes-Random-Secure/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/p5-Bytes-Random-Secure/pkg-descr Sat Jan 23 15:14:24 2016 (r407002) @@ -0,0 +1,20 @@ +Bytes::Random::Secure provides two interfaces for obtaining crypto-quality +random bytes. The simple interface is built around plain functions. For greater +control over the Random Number Generator's seeding, there is an Object Oriented +interface that provides much more flexibility. + +The "functions" interface provides functions that can be used any time you need +a string of a specific number of random bytes. The random bytes are available as +simple strings, or as hex-digits, Quoted Printable, or MIME Base64. There are +equivalent methods available from the OO interface, plus a few others. + +This module can be a drop-in replacement for Bytes::Random, with the primary +enhancement of using a cryptographic-quality random number generator to create +the random data. The random_bytes function emulates the user interface of +Bytes::Random's function by the same name. But with Bytes::Random::Secure the +random number generator comes from Math::Random::ISAAC, and is suitable for +cryptographic purposes. The harder problem to solve is how to seed the +generator. This module uses Crypt::Random::Seed to generate the initial seeds +for Math::Random::ISAAC. + +WWW: http://search.cpan.org/dist/Bytes-Random-Secure/ Added: head/security/p5-Bytes-Random-Secure/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/p5-Bytes-Random-Secure/pkg-plist Sat Jan 23 15:14:24 2016 (r407002) @@ -0,0 +1,2 @@ +%%SITE_PERL%%/Bytes/Random/Secure.pm +%%PERL5_MAN3%%/Bytes::Random::Secure.3.gz
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601231514.u0NFEOGD049617>