Crypt::Random::Source(3pm)

Crypt::Random::Source3pm

Get weak or strong random data from pluggable sources

Usage

    use Crypt::Random::Source qw(get_strong);
    # get 10 cryptographically strong random bytes from an available source
    my $bytes = get_strong(10);

Version

version 0.14

Overview

This module provides implementations for a number of byte oriented sources of random data.

See Crypt::Random::Source::Factory for a more powerful way to locate sources, and the various sources for specific implementations.

Exports

get
get_weak
get_strong

These functions delegate to a source chosen by an instance of Crypt::Random::Source::Factory, calling get

Caveats

In versions prior to 0.13, "rand" could be used as a result of calling "get_weak", or "get", if no random device was available. This implies that not explicitly asking for "get_strong" on a non POSIX operating system (e.g. Win32 without the Win32 backend) could have resulted in non cryptographically random data.

Relatedly, the characterization of "urandom" as a weak source of randomness is also largely a misconception, see <https://www.2uo.de/myths-about-urandom/> for example.

Support

Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Crypt-Random-Source> (or [email protected] <mailto:[email protected]>).

Contributors

•

Karen Etheridge <[email protected]>

•

Florian Ragwitz <[email protected]>

•

Graham Knop <[email protected]>

•

David Pottage <[email protected]>

•

Max Kanat-Alexander <mkanat@es-compy.(none)>

•

Edward Betts <[email protected]>

Releases

7 releases since Debian 7 (Wheezy); the text changed 4 times.

  1. 7
  2. 8
  3. 9
  4. 10–11
  5. 12–13

Author

XXXX XXX'XX (Yuval Kogman) <[email protected]>

From libcrypt-random-source-perl 0.14-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.