Protect generated documents with encryption and/or a password

When generating a document, it would be great if the file can be encrypted or password protected, especially for important documents.

I am curious about this option. Are you thinking just pdf’s or Word and rtf docs as well? I am not aware of the ability to do this with rtf files, so that would be interesting.

Password protected pdf’s might be handy to have.