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

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Encryption and Decryption" Watch "Encryption and Decryption" New topic

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

Joined: Oct 18, 2000
Posts: 4121

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


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

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"

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

Joined: May 15, 2001
Posts: 20
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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Encryption and Decryption