The Drupal private key feature is great for people to get up and running quickly but it's not great for security because it is often stored in the database. You can theoretically remove it from the db and incldue it in settings.php's $conf variable, but that feels risky to me since it might sneak into the database or might get leaked by another module.

The attached plugin (renamed with .txt) uses a different variable specifically for encryption.

Totally untested (needs automated tests as well, probably).
Needs a hook_requirements integration.

Comments

greggles’s picture

Status: Needs work » Needs review
StatusFileSize
new1.27 KB
new1.88 KB

OK, I think this is ready.

Another drupal_variable.inc (renamed with .txt extension for upload only) and an interdiff.

greggles’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.