Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to encrypt a file attachement in Java Mail?

 
Srivani Nallan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can attach a file to a mail. How do I encrypt a file that's being attached to the mail? Can I use the Java cryptography package? Please help me! I am confused.
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure you can. But before any sensible answer can be given, the question must be: who or what needs to be able to decrypt the e-mail?
- Peter
 
Srivani Nallan
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any other mail client like microsoft outlook,netscape etc should be able to open the attachment and save it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic