ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/OpenSSL/OpenSSL/Rand.pm
Revision: 1.1
Committed: Sat Oct 27 01:53:24 2001 UTC (22 years, 6 months ago) by stefan
Branch: MAIN
CVS Tags: BEFORE_5_8_REGEX_FIX, HEAD
Log Message:
*** empty log message ***

File Contents

# Content
1 package OpenSSL::Rand;
2
3 =head1 NAME
4
5 OpenSSL::Rand -- Access to OpenSSL Random functions
6
7 =head1 SYNOPSIS
8
9 use OpenSSL::Rand;
10
11 =cut
12
13 use OpenSSL;
14
15 our $VERSION = '0.06';
16 use base Exporter;
17 @EXPORT_OK = qw(randbytes randbytes_hex randbytes_base64);
18
19 =head1 FUNCTIONS
20
21 =over 4
22
23 =item $randbytes = randbytes($nr)
24
25 returns $nr random bytes raw.
26
27 =item $randbytes_base64 = randbytes_base64($nr)
28
29 returns $nr random bytes base 64 encoded.
30
31 =item $randbytes_hex = randbytes_hex($nr)
32
33 returns $nr random bytes hex encoded.
34
35 =back
36
37 =head1 SEE ALSO
38
39 L<OpenSSL>, L<OpenSSL::HMAC>.
40
41 =head1 AUTHOR
42
43 Stefan Traby <stefan@hello-penguin.com>
44 http://mindterm.plan9.de/
45
46 =cut
47
48 1;