|Think about Loose Coupling|
Encrypting swap (OS-dependent)by rkrieger (Friar)
|on Jan 21, 2007 at 17:01 UTC||Need Help??|
If you're worried about what ends up in swap, you may want to check whether your OS offers functionality like the following:
In OpenBSD, the sysctl(8) command allows you to instruct the OS to encrypt the pages to go to swap. See the man pages for more information on that feature.
Resulting in the (shell) command of:
Granted, it relies on your OS' feature set and it's not done in Perl. Still, it may alleviate your concerns.
If you don't know where you're going, any road will get you there.