I am creating a iPod app which will on multiple devices. For each user login on my app, I want to create a unique number on client to track the session as well as service calls within this session. This tracking will happen on my server where I could know all the service calls made by the client for a particular session.
I am planning to create a hash which is made up of some unique login session ID created on client and timestamp and then hashed with some fixed number.
Is there any easy mechanism to generate a unique number on IOS and then some hash (encryption) algorithm which could be used on my server side to decypher to get the original string. My server will be in Java.
You can use
CFUUIDs, unique 128-bit integers, that can be created usingCFUUIDCreate. They already incorporates timestamp info, so you may be able to useUUIDs as your session IDs without additional timestamps. If you useSSLfor yor connection to the server, you do not need to do any additional encryption either.