I am trying to see what would be the best approach to create a class that I can call in order to encrypt/sign an attachment and then email it using SMTP.
Then I want to be able to POP the mail, retrieve the subject with the attachment and verify the signature and decrypt the attachment.