File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Encryption and Decryption Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Encryption and Decryption" Watch "Encryption and Decryption" New topic
Author

Encryption and Decryption

rani bedi
Ranch Hand

Joined: Feb 06, 2001
Posts: 358
Can anyone suggest how can we do encryption and decryption in java? Do we some specific API for that?


Cheers,<br />Rani<br />SCJP, SCWCD, SCBCD
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Yes, there is... the JCE- Java Cryptograpy Extension...

HTH,
-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Hey, Nate,
I've been meaning to ask. What does HTH stand for??


"JavaRanch, where the deer and the Certified play" - David O'Meara
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

I asked him that some time back...

It means 'hope that helps'

Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Ahhhh, thanks.
Fredrik Safstrom
Greenhorn

Joined: May 15, 2001
Posts: 20
Parmeet,
You can use a simple class I posted earlier: http://www.javaranch.com/ubb/Forum45/HTML/000243.html
This doesn't work on binary data, but it is excelent for providing easy encryption/dercyption of messages.
HTH
/Bamse
 
 
subject: Encryption and Decryption