i guess there are two original requirements
- Secure the passwords during printing/viewing
- Avail passwords on-demand
Using EncryptionService, we can have the encryptionkey in one place and the passwords in different places. With this, you can keep the encrypted passwords in the configuration element and no one will access them unless the key is there.
Now, keep the key in a separate place and create an action that will decrypt the passwords on demand seems like a good idea.
PS: just saying we can even encrypt the key and spread it in parts and do a double decryption whenever needed. #cringe