Session/ID/md5.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 94.7% 18 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Session/Tutorial.pm ↑ Summary Session/Serialize/storable.pm »
1 package CGI::Session::ID::md5;
2  
3 # $Id$
4  
5 19 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 19 ▶use Crypt::SysRandom qw( random_bytes );
Subroutine BEGIN: called CC=1 SCAR=0.0
7 19 ▶use CGI::Session::ErrorHandler;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 19 $CGI::Session::ID::md5::VERSION = '4.49';
10 19 @CGI::Session::ID::md5::ISA = qw( CGI::Session::ErrorHandler );
11  
12 19 *generate = \&generate_id;
13 28 ▶sub generate_id { return unpack("H*", random_bytes(16)) }
Subroutine generate_id: called CC=1 SCAR=0.0
Pod undocumented
14  
15 19 1;
16  
17 =pod
18  
19 =head1 NAME
20  
21 CGI::Session::ID::md5 - default CGI::Session ID generator
22  
23 =head1 SYNOPSIS
24  
25 use CGI::Session;
26 $s = CGI::Session->new("id:md5", undef);
27  
28 =head1 DESCRIPTION
29  
30 CGI::Session::ID::MD5 is to generate MD5 encoded hexadecimal random ids. The library does not require any arguments.
31  
32 =head1 LICENSING
33  
34 For support and licensing see L<CGI::Session|CGI::Session>
35  
36 =cut
« Session/Tutorial.pm ↑ Summary Session/Serialize/storable.pm »