Added aes encryption for attachments