What is the algorithm. I would like to use the same algorithm to manually create my own session_ids which I want to store locally as well.
I realize I could create it server side ( using session functions ) and send it…but I just prefer to hash / encode it myself…+ I want the option to increase the complexity to my liking…fiddle with it etc.
Related:
1
Thanks.
PHP uses md5 by default, but can be configured to use sha-1 and as of PHP 5.3 many other hashing algorithms.
You can choose your own algorithm, but it should be at least as strong as md5 and probably should be stronger as md5 is getting a bit out of date.