Scripthash
Scripthash is a PHP extention which enables you securely hide passwords or execute programs as a different user when using PHP as an Apache Module or as a RedHat RPM. During module initialization a shared memory segment is created and initialised with a randomly generated secret. This segment remains attached across the subsequent forks which create the Apache children and thus the children have access to the secret. The module implements a single function scripthash() which when called returns an MD5 hash of the secret and various attributes of the call. This hash can be used by external programs to securely return privileged information to the caller.