pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/security/p5-Crypt-URandom-Token



Module Name:    pkgsrc
Committed By:   wen
Date:           Fri Jul 24 13:59:29 UTC 2026

Added Files:
        pkgsrc/security/p5-Crypt-URandom-Token: DESCR Makefile distinfo

Log Message:
Import Crypt::URandom::Token-0.005 as p5-Crypt-URandom-Token.

This module provides a secure way to generate a random token for passwords
and similar using Crypt::URandom as the source of random bits.

By default, it generates a 44 character alphanumeric token with more than
256 bits of entropy. A custom alphabet with between 2 and 256 elements can
be provided.

Modulo reduction and rejection sampling is used to prevent modulus bias. Keep
in mind that bias will be introduced if duplicate elements are provided in
the alphabet.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/security/p5-Crypt-URandom-Token/DESCR \
    pkgsrc/security/p5-Crypt-URandom-Token/Makefile \
    pkgsrc/security/p5-Crypt-URandom-Token/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/security/p5-Crypt-URandom-Token/DESCR
diff -u /dev/null pkgsrc/security/p5-Crypt-URandom-Token/DESCR:1.1
--- /dev/null   Fri Jul 24 13:59:29 2026
+++ pkgsrc/security/p5-Crypt-URandom-Token/DESCR        Fri Jul 24 13:59:29 2026
@@ -0,0 +1,10 @@
+This module provides a secure way to generate a random token for passwords
+and similar using Crypt::URandom as the source of random bits.
+
+By default, it generates a 44 character alphanumeric token with more than
+256 bits of entropy. A custom alphabet with between 2 and 256 elements can
+be provided.
+
+Modulo reduction and rejection sampling is used to prevent modulus bias. Keep
+in mind that bias will be introduced if duplicate elements are provided in
+the alphabet.
Index: pkgsrc/security/p5-Crypt-URandom-Token/Makefile
diff -u /dev/null pkgsrc/security/p5-Crypt-URandom-Token/Makefile:1.1
--- /dev/null   Fri Jul 24 13:59:29 2026
+++ pkgsrc/security/p5-Crypt-URandom-Token/Makefile     Fri Jul 24 13:59:29 2026
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2026/07/24 13:59:29 wen Exp $
+
+DISTNAME=      Crypt-URandom-Token-0.005
+PKGNAME=       p5-${DISTNAME}
+CATEGORIES=    security perl5
+MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=../../authors/id/S/ST/STIGTSP/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://metacpan.org/release/Crypt-URandom
+COMMENT=       Perl5 module to provide non blocking randomness
+LICENSE=       ${PERL5_LICENSE}
+
+DEPENDS+=      p5-Crypt-URandom>=0.40:../../security/p5-Crypt-URandom
+TEST_DEPENDS+= p5-Test-Exception>=0.43:../../devel/p5-Test-Exception
+
+USE_LANGUAGES= c
+PERL5_PACKLIST=        auto/Crypt/URandom/Token/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/security/p5-Crypt-URandom-Token/distinfo
diff -u /dev/null pkgsrc/security/p5-Crypt-URandom-Token/distinfo:1.1
--- /dev/null   Fri Jul 24 13:59:29 2026
+++ pkgsrc/security/p5-Crypt-URandom-Token/distinfo     Fri Jul 24 13:59:29 2026
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2026/07/24 13:59:29 wen Exp $
+
+BLAKE2s (Crypt-URandom-Token-0.005.tar.gz) = eaac6dff3b2f28694b1c933f7d681f29c5c6e99aada3e4c0bbbd5ff76e4a90a6
+SHA512 (Crypt-URandom-Token-0.005.tar.gz) = 72288dd4341f2f130a5a9b78a03dfa0fc6d132a5e2af0427c3542c873074e365fc1c85b6a5b5f09ecfab999146fa5c59696c523b9edf71462ea59ddd9703c86a
+Size (Crypt-URandom-Token-0.005.tar.gz) = 12939 bytes



Home | Main Index | Thread Index | Old Index