This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

encryption/decryption in servlets

 
Ravindra Harige
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to encrypt a file using RSA (2048 bit key) in servlet program.I want to know-
1.is cryptography possible in servlets?
2.what packages/APIs can be used to carry out RSA encryption/decryption?


regards
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64847
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlets are normal Java classes that just happen to be executed by a servlet container. I'm going to move this to a general forum as the fact that you're in a servlet is rather irrelevant. In fact, good design would dictate that such tasks would be delegated to normal java classes in any case, rather than in code within the servlet.
 
Ravindra Harige
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Bear.I posted this query in servlets forum 'cos i thought the approach to implement cryptography in servlets'd be different than in normal java classes.Anyways,i'm looking forward for response from this forum
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cryptographic algorithms are built into Java. The relevant API is called "JCE", and you can find a number of links about it here, including round-trip en-/decryption.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic