This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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:
This doesn't work on binary data, but it is excelent for providing easy encryption/dercyption of messages.
Have you checked out Aspose?
subject: Encryption and Decryption
It's not a secret anymore!