18 Sep 2020 22:00:45 UTC
- Distribution: Apache-Session
- Module version: 2.12
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (12)
- Testers (1264 / 0 / 0)
- KwaliteeBus factor: 2
- 68.88% Coverage
- License: perl_5
- Perl: v5.5.0
- Activity24 month
- Download (48.73KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionCHORNY Alexandr Ciorniiand 1 contributors
- Casey West <casey[at]geeknest.com>
Apache::Session::Generate::MD5 - Use MD5 to create random object IDs
use Apache::Session::Generate::MD5; $id = Apache::Session::Generate::MD5::generate();
This module fulfills the ID generation interface of Apache::Session. The IDs are generated using a two-round MD5 of a random number, the time since the epoch, the process ID, and the address of an anonymous hash. The resultant ID number is highly entropic on Linux and other platforms that have good random number generators. You are encouraged to investigate the quality of your system's random number generator if you are using the generated ID numbers in a secure environment.
This module can also examine session IDs to ensure that they are, indeed, session ID numbers and not evil attacks. The reader is encouraged to consider the effect of bogus session ID numbers in a system which uses these ID numbers to access disks and databases.
This modules takes one argument in the usual Apache::Session style. The argument is IDLength, and the value, between 0 and 32, tells this module where to truncate the session ID. Without this argument, the session ID will be 32 hexadecimal characters long, equivalent to a 128-bit key.
This module was written by Jeffrey William Baker <email@example.com>.
Module Install Instructions
To install Apache::Session, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Apache::Session
For more information on module installation, please visit the detailed CPAN module installation guide.