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/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Should I hash / encrypt user id for when set in session (/thread-67125.html)



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.