{
    "mode": "perldoc",
    "parameter": "Apache::Session::Generate::MD5",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Apache%3A%3ASession%3A%3AGenerate%3A%3AMD5/json",
    "generated": "2026-06-16T04:13:36Z",
    "synopsis": "use Apache::Session::Generate::MD5;\n$id = Apache::Session::Generate::MD5::generate();",
    "sections": {
        "NAME": {
            "content": "Apache::Session::Generate::MD5 - Use MD5 to create random object IDs\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Apache::Session::Generate::MD5;\n\n$id = Apache::Session::Generate::MD5::generate();\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module fulfills the ID generation interface of Apache::Session. The IDs are generated using\na two-round MD5 of a random number, the time since the epoch, the process ID, and the address of\nan anonymous hash. The resultant ID number is highly entropic on Linux and other platforms that\nhave good random number generators. You are encouraged to investigate the quality of your\nsystem's random number generator if you are using the generated ID numbers in a secure\nenvironment.\n\nThis module can also examine session IDs to ensure that they are, indeed, session ID numbers and\nnot evil attacks. The reader is encouraged to consider the effect of bogus session ID numbers in\na system which uses these ID numbers to access disks and databases.\n\nThis modules takes one argument in the usual Apache::Session style. The argument is IDLength,\nand the value, between 0 and 32, tells this module where to truncate the session ID. Without\nthis argument, the session ID will be 32 hexadecimal characters long, equivalent to a 128-bit\nkey.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "This module was written by Jeffrey William Baker <jwbaker@acm.org>.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Apache::Session\n",
            "subsections": []
        }
    },
    "summary": "Apache::Session::Generate::MD5 - Use MD5 to create random object IDs",
    "flags": [],
    "examples": [],
    "see_also": []
}