openshift/wordpress-example — pull request #7 by fotioslindiakos (2012-06-11 22:20:16+00:00)
Title: Secure session variable generation

Modified the `wp-config.php` script to generate more secure variables.

First, it ensures we are running the app on OpenShift. Then it checks for `OPENSHIFT_SECRET_TOKEN` or creates it by generating a SHA256 hash of `OPENSHIFT_APP_NAME` + `OPENSHIFT_APP_UUID`.

It then generates secure variables by seeding the RNG with that hash and the name of the variable to generate and creating a random string from the RNG.