Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Crypt::PRNG::RC4

Name Crypt::PRNG::RC4
Version 0.076
Located at /usr/lib/x86_64-linux-gnu/perl5/5.34
File /usr/lib/x86_64-linux-gnu/perl5/5.34/Crypt/PRNG/RC4.pm
Is Core No
Search CPAN for this module Crypt::PRNG::RC4
Documentation Crypt::PRNG::RC4
Module Details Crypt::PRNG::RC4


NAME

Crypt::PRNG::RC4 - Cryptographically secure PRNG based on RC4 (stream cipher) algorithm


SYNOPSIS

   ### Functional interface:
   use Crypt::PRNG::RC4 qw(random_bytes random_bytes_hex random_bytes_b64 random_string random_string_from rand irand);
   $octets = random_bytes(45);
   $hex_string = random_bytes_hex(45);
   $base64_string = random_bytes_b64(45);
   $base64url_string = random_bytes_b64u(45);
   $alphanumeric_string = random_string(30);
   $string = random_string_from('ACGT', 64);
   $floating_point_number_0_to_1 = rand;
   $floating_point_number_0_to_88 = rand(88);
   $unsigned_32bit_int = irand;
   ### OO interface:
   use Crypt::PRNG::RC4;
   $prng = Crypt::PRNG::RC4->new;
   #or
   $prng = Crypt::PRNG::RC4->new("some data used for seeding PRNG");
   $octets = $prng->bytes(45);
   $hex_string = $prng->bytes_hex(45);
   $base64_string = $prng->bytes_b64(45);
   $base64url_string = $prng->bytes_b64u(45);
   $alphanumeric_string = $prng->string(30);
   $string = $prng->string_from('ACGT', 64);
   $floating_point_number_0_to_1 = rand;
   $floating_point_number_0_to_88 = rand(88);
   $unsigned_32bit_int = irand;


DESCRIPTION

Provides an interface to the RC4 based pseudo random number generator

All methods and functions are the same as for the Crypt::PRNG manpage.


FUNCTIONS

random_bytes

See random_bytes in the Crypt::PRNG manpage.

random_bytes_hex

See random_bytes_hex in the Crypt::PRNG manpage.

random_bytes_b64

See random_bytes_b64 in the Crypt::PRNG manpage.

random_bytes_b64u

See random_bytes_b64u in the Crypt::PRNG manpage.

random_string

See random_string in the Crypt::PRNG manpage.

random_string_from

See random_string_from in the Crypt::PRNG manpage.

rand

See rand in the Crypt::PRNG manpage.

irand

See irand in the Crypt::PRNG manpage.


METHODS

new

See new in the Crypt::PRNG manpage.

bytes

See bytes in the Crypt::PRNG manpage.

bytes_hex

See bytes_hex in the Crypt::PRNG manpage.

bytes_b64

See bytes_b64 in the Crypt::PRNG manpage.

bytes_b64u

See bytes_b64u in the Crypt::PRNG manpage.

string

See string in the Crypt::PRNG manpage.

string_from

See string_from in the Crypt::PRNG manpage.

double

See double in the Crypt::PRNG manpage.

int32

See int32 in the Crypt::PRNG manpage.


SEE ALSO

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026