According to this, "ECB" is defined in a document called "DES Modes of Operation", which suggests to me that it may be applicable to DES, and not necessarily to RSA. Have you tried a different mode?
Originally posted by rajendra peddinti: you mean "cipher is a comibanation of algorithm,mode and padding" ?
No, I meant what I wrote. The point is that what JCE calls algorithm is not something like RSA or DES (which it calls cipher), but the combination of that with the mode and the padding. Any introduction to JCE will explain this in detail.
but in the link provided by you(in the your first reply of this thread)..it was like under Cipher their are three parts algorithm,mode,padding and under algorithm the rsa/des etc. were specified. i got less idea on jce.jar anyways. but what do you think is the problem with my code?
i.e. no mode and no padding, even then i am getting the same error. so if i'm not wrong,error has got nothing to do with "ECB" , the Mode. what do you say??
Has it occured to you that NoSuchAlgorithmException is probably thrown because the cipher engine cannot find the specified algorithm/mode/padding combination you're specifying?
Print out a list of your cipher engine's supported algorithms and modes and I'm pretty sure you will not find RSA/ECB anywhere in the list.