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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | interdiff.txt | 1.88 KB | greggles |
| #1 | drupal_variable.inc_2.txt | 1.27 KB | greggles |
| drupal_variable.inc_.txt | 838 bytes | greggles |
Comments
Comment #1
gregglesOK, I think this is ready.
Another drupal_variable.inc (renamed with .txt extension for upload only) and an interdiff.
Comment #2
gregglesOk, now committed http://drupalcode.org/project/encrypt.git/commit/ae4b298