File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Java Micro Edition
generate securerandom in bouncy castle
Joined: Jun 17, 2008
Nov 29, 2009 00:10:21
Im trying to use bouncy castle FixedSecureRandom to generate AES key. Before that I tried to use
and my code was like this:
SecureRandom sr = new SecureRandom(); AESkey = new byte ; sr.nextBytes(AESkey);
the system throws noclassdeffounderror. Then I did obfuscation using Netbeans to the highest level but the problem still.
Then I changed my code to this:
FixedSecureRandom fsr = (FixedSecureRandom)FixedSecureRandom.getInstance("SHA1PRNG"); AESkey = new byte ; fsr.nextBytes(AESkey);
the same error is was throwen at first line. Note this code should run in mobile side.
Any idea?Any help?
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: generate securerandom in bouncy castle
java in the sharp zaurus PDA
Bouncy Castle encryption examples and tutorials
Bouncy Castle: PGPKeyRingGenerator
pad block corrupted
Encrypting a serialized object
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013