to get/generate nonce. error in random, getBytes Options

by sebby zml » Tue, 09 Mar 2010 09:52:26 GMT


Sponsored Links
 Hello every1,

I am now working on a program which is someting related to IMS.
I want the Server to send back a nonce to the Client.
In order to get nonce, I tried using the code from this site.

==>   http://forums.sun.com/thread.jspa?threadID=595626 

-Use java.security.SecureRandom:

--byte[] nonce = new byte[16];
--Random rand;
--rand = SecureRandom.getInstance ("SHA1PRNG");
--rand.getBytes (nonce);

But the problem is I could not use rand.getBytes as the class Random
doesn't provide methot getbytes().

Is there any other way to get or generate nonce? please help.
Thanks a lot.


--



to get/generate nonce. error in random, getBytes Options

by sebby zml » Wed, 10 Mar 2010 04:32:45 GMT


 Hello every1,

I am now working on a program which is someting related to IMS.
I want the Server to send back a nonce to the Client.
In order to get nonce, I tried using the code from this site.

==>   http://forums.sun.com/thread.jspa?threadID=595626 

-Use java.security.SecureRandom:

--byte[] nonce = new byte[16];
--Random rand;
--rand = SecureRandom.getInstance ("SHA1PRNG");
--rand.getBytes (nonce);

But the problem is I could not use rand.getBytes as the class Random
doesn't provide methot getbytes().

Is there any other way to get or generate nonce? please help.
Thanks a lot.


--


Sponsored Links


Other Threads

1. Google Android Documentaion Videos...

Hello folks,
where i  can download them in a very good quality?

Thanks in advance.


--~--~---------~--~----~------------~-------~--~----~

2. ADC2 Submission: MobileMatchMe

I just wanted to share my team's entry into the ADC2 competition:
MobileMatchMe

MobileMatchMe is a mobile dating service that allows people to see and
interact with each other in real-time using their mobile devices. We
hope that the application will help people meet that may not have
otherwise by providing an easy "ice breaker" in the form of small,
innocuous pieces of information intended to spark further
conversation. There is also a web site that MobileMatchMe users can go
to after a night out on the town to see where they were over time as
well as view and contact people they have matched with.

Check it out at:

http://www.mobilematch.me

Good luck everyone!

Tom

--~--~---------~--~----~------------~-------~--~----~

3. WorldSpeak: listen to words in many languages

4. Speaker for an IEEE student branch Event in Cairo, Egypt

5. Listview onListItemClick(), position

6. Library to communicate with peripherals in Android?

7. how to download an image?