How do I encrypt a text file please ?

Hello,

I want to encrypt a text file that we send to our customers and also enable them to read it in its original format (ie decrypt it). AFAIK this is different from Certification, can anyone point me in the right direction on how to do this and if the JDK has classes that I can use to do this.

Thanks in advance.

[342 byte] By [DomK] at [2007-9-26 8:30:35]
# 1

the best way to do this is with PKI (Public Key Infrastructure). Just get you and your client to buy a certificate from thwarte/verisign, or even use a trial one, and then you are away. Have a butchers at the verisign web site.

Or use something like PGP, which works along the same way. PGP = Pretty Good Privacy, basically you can send encrypted stuff to your client, and the only people who can decrypt it are those you have given your key to, ie your client. again, look on the web for PGP

itspike at 2007-7-1 19:10:28 > top of Java-index,Security,Cryptography...