Re: Safe session IDs
From: Adam Osuchowski (adwol@polsl.gliwice.pl)Date: 01/11/02
- Previous message: Jarno Huuskonen: "Re: Safe session IDs"
- In reply to: Ryan M Harris: "Safe session IDs"
- Next in thread: Glynn Clements: "Re: Safe session IDs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 11 Jan 2002 00:19:45 +0100 From: Adam Osuchowski <adwol@polsl.gliwice.pl> To: secprog@securityfocus.com
Ryan M Harris wrote:
> What is the most secure way of generating a session number?
>
> I have used the following formula in the past. Is it secure (from a
> randomness perspective)? Any way to make it more secure/random?
>
> sessionid = md5( <REMOTE_IP> + REMOTE_USER_AGENT> + rand() (5 bytes from
> here) + microtime() )
Aside from it I often add extra time(). microtime() is too periodic, and time
still increase. ;))
-- ## Adam Osuchowski adwol@polsl.gliwice.pl, adwol@silesia.linux.org.pl ## Silesian University of Technology, Computer Centre Gliwice, Poland
- Previous message: Jarno Huuskonen: "Re: Safe session IDs"
- In reply to: Ryan M Harris: "Safe session IDs"
- Next in thread: Glynn Clements: "Re: Safe session IDs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|