I've searched throughout different forums and now I am finally putting my question as I can't find specific answer.
I am writing security protocol for SunSPOT Sensors as my final year Project.
I wish to generate a 128 bit Key which can be hashed later on, through my search on web I come across that best method to generate the random keys is SecureRandom.
I am trying to implement the general statement to see how it works so that I can use it further according to my requirement
SecureRandom gen = SecureRandom.getInstance("SHA1WITHECDSA");
above statment I have used with "SHA1PRNG", "MD5ECDSA" and "ECDSAWithSHA1Signature" as soon as I complete Statement and put semicolon it return this Error
method getInstance in class com.sun.spot.security.implementation.SecureRandom cannot be applied to given types
required: byte found: java.lang.String
I have added the Jar file respectively to the build.xml and into the build.properties ; also the imported the algorithm into the program.
Thanks for reading
and any help is much appriciated
Thankyou Every One who have tried to help.