aspose file tools*
The moose likes Java in General and the fly likes How to encrypt a file attachement in Java Mail? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to encrypt a file attachement in Java Mail?" Watch "How to encrypt a file attachement in Java Mail?" New topic
Author

How to encrypt a file attachement in Java Mail?

Srivani Nallan
Greenhorn

Joined: Apr 11, 2003
Posts: 16
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

Joined: Apr 20, 2000
Posts: 3252
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

Joined: Apr 11, 2003
Posts: 16
Any other mail client like microsoft outlook,netscape etc should be able to open the attachment and save it.
 
Don't get me started about those stupid light bulbs.
 
subject: How to encrypt a file attachement in Java Mail?