in reply to Handling encryption safely

Implied but unsaid:
If someone can see your passphrase in memory, can't they also see the plaintext you're encrypting with it?
At some point in the process, everything you want to hide will be available. It's only a question of how much effort someone is willing to expend to discover/reconstruct it.

-QM
--
Quantum Mechanics: The dreams stuff is made of