CodeIgniter Forums
Should I hash / encrypt user id for when set in session - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Should I hash / encrypt user id for when set in session (/showthread.php?tid=67125)



Should I hash / encrypt user id for when set in session - wolfgang1983 - 01-18-2017

I would like to know when I set user id in session when the user  logins in

If it is a good idea to encrypt user id  and then decrypt it in a model

Just for added security.


RE: General Hashing Question - Narf - 01-18-2017

No, and this has nothing to do with hashing.