BSD Ports

security/p5-Crypt-URandom-Token 0.005 NetBSD

Perl5 module to provide non blocking randomness

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Port added
Last update
Commit
4d47047f9d
License
gnu-gpl-v2 OR artistic
Categories
security, perl5
Package size
6.3 KiB, 7.4 KiB installed

Description

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.

In the other systems

SystemPortVersion
NetBSDsecurity/p5-Crypt-URandom-Token0.005
FreeBSDsecurity/p5-Crypt-URandom-Token0.005
HardenedBSDsecurity/p5-Crypt-URandom-Token0.005
GhostBSDsecurity/p5-Crypt-URandom-Token0.005

Install

Binary package:

pkgin install p5-Crypt-URandom-Token

From pkgsrc:

cd /usr/pkgsrc/security/p5-Crypt-URandom-Token && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.005
NetBSD 10.1 aarch64-
SmartOS / illumos x86_640.005
macOS 15 arm640.005

Dependencies

Run dependencies 2

Commit history 1

DateCommitCreditsLog message
4d47047f9d wen 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.