Added encryption support for attachments, currently disabled