Re: help...
Jeff Nisewanger (jdn@shimmer.eng.sun.com)
Tue, 5 Jan 1999 09:34:22 -0800 (PST)
> hi...
> can i convert data in SecureRandom type to byte[]?
> well...it's becoz in Blind Signature algo, i've got
> to encrypt big random number with public key & update
> the value with message to be sent to receiver...the
> algo is written here:
> m x (prng ** (pub key))...anybody has idea on how to
> solve my problem? thanx...
> <raffaee>
From the SecureRandom class documentation:
* <p>After the caller obtains the SecureRandom object from the
* <code>getInstance</code> call, it can call <code>nextBytes</code>
* to generate random bytes:
* <pre>
* byte bytes[] = new byte[20];
* random.nextBytes(bytes);
* </pre>