home *** CD-ROM | disk | FTP | other *** search
- package CGI::Session::ID::MD5_Base64;
-
- # $Id: MD5_Base64.pm_rev 1.3 2003/12/11 16:32:43 root Exp root $
-
- use strict;
- use Digest::MD5;
-
- use vars qw( $VERSION );
-
- $VERSION = '1.01';
-
- sub generate_id {
- my $self = shift;
- my $md5 = new Digest::MD5();
- $md5->add( $$ , time() , rand(9999) );
- return $md5->b64digest();
- }
-
-
- 1;
-
- =pod
-
- =head1 NAME
-
- CGI::Session::ID::MD5_Base64 - CGI::Session ID driver based on Base64 encoding
-
- =head1 SYNOPSIS
-
- use CGI::Session;
-
- $session = new CGI::Session("id:MD5_Base64", undef, { Directory => '/tmp' };
-
- =head1 DESCRIPTION
-
- CGI::Session::ID::MD5_Base64 is to generate MD5 digest Base64 encoded random ids.
- The library does not require any arguments.
-
- =head1 COPYRIGHT
-
- Copyright (C) 2003 Daniel Peder. All rights reserved.
-
- This library is free software. You can modify and distribute it under the same terms as Perl itself.
-
- Partialy based on CGI::Session::ID::MD5 and the whole excelent CGI::Session work by
-
- Sherzod Ruzmetov <sherzodr@cpan.org>
-
- =head1 AUTHOR
-
- Daniel Peder <danpeder@cpan.org>
-
- Feedbacks, suggestions and patches are welcome.
-
- =head1 SEE ALSO
-
- =over 4
-
- =item *
-
- L<MIME::Base64|MIME::Base64> - Base64 encoding method
-
- =item *
-
- L<Incr|CGI::Session::ID::Incr> - Auto Incremental ID generator
-
- =item *
-
- L<CGI::Session|CGI::Session> - CGI::Session manual
-
- =item *
-
- L<CGI::Session::Tutorial|CGI::Session::Tutorial> - extended CGI::Session manual
-
- =item *
-
- L<CGI::Session::CookBook|CGI::Session::CookBook> - practical solutions for real life problems
-
- =item *
-
- B<RFC 2965> - "HTTP State Management Mechanism" found at ftp://ftp.isi.edu/in-notes/rfc2965.txt
-
- =item *
-
- L<CGI|CGI> - standard CGI library
-
- =item *
-
- L<Apache::Session|Apache::Session> - another fine alternative to CGI::Session
-
- =back
-
- =cut
-