Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Urgent: JCE implemention  RSS feed

 
madhesh raj
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

When i use the SunJCE provider to encrypt i get an exception that "No Such Algorithm exists". I have tried with various algorithms like DES, RSA etc. I have gone thru' the docs provided by SUN. This problem invariably comes when i try to instantiate the ciper class.
Can anyone tell me which algorithms are implemented by SunJCE. As per spec, Sun says it implements RSA, DES among many others.
If somebody has done it succesfully pls send me a sample code.
Thanks
Madhesh
 
Mark Herschberg
Sheriff
Posts: 6037
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IIRC, Sun does implement algorithms, however, those distributions are not free.
Try http://www.bouncycastle.org or http://www.cryptix.org for free JCE implementations.

--Mark
hershey@vaultus.com
 
madhesh raj
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,
Thanks for the reply. What i actually want to do is to use JCE to encrypt my passwords (using some standard encryption algorithm). I didn't quite get u when u say "Sun does implement these algorithms but these distribution are not free"
The thing is i want to create my own distribution using the providers provided by SUN.
Any views on this are welcome
Madhesh
 
Mark Herschberg
Sheriff
Posts: 6037
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun defines a set of APIs. Sun's implementation of those API's is not free. If you wnat to use the provider's FROM Sun, you must pay for this. If you want to use providers implemented by open source groups, but DEFINED BY Sun, you can do so for free.
I imagine you want to do the latter. Use the open source library, write your app, and include the third party jars with your app.

--Mark
hershey@vaultus.com
 
madhesh raj
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,
Thanks a lot for the clarification. I have one more doubt. I just installed JCE1.2.1 It comes along with the JCE classes and the SUNJCE provider. All this is a free download. Do u mean to say that these classes do not have any implementation.
Also, pls tell me where i can find the open source implementation.
Thanks
Madhesh
 
madhesh raj
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,
Sorry i just forgot u had already specified two locations for the open source implementation. I have got those. What i would like to know is the exact difference between these implementations and the one provided by SUN in JCE1.2.1. It comes with the SUNJCE_PROVIDER.JAR which contains the implementation right.
Madhesh
 
manu manee
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi madhesh i am having the similar problems as you was having about the algorithm i.e. algorithm is not available i am using des just give me the solution
with regards
manu
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!