MyBB Community Forums
Crypted unique identifier - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: Third Party Integration (https://community.mybb.com/forum-132.html)
+--- Thread: Crypted unique identifier (/thread-223435.html)



Crypted unique identifier - Crazycat - 06-14-2019

Hi there,
I'm developing an external application (bash script) whish will call a misc page on a MyBB forum (wget or curl).
I'm looking for a way to identify user with a crypted identifier, but don't really know which solution is the best:
  • Create a new field in mybb_users (automatically filled when the user asks the bash script for the first time)
  • Hash the uid
  • Hash the username
  • Hash both
  • ...
I don't want to use a field that the user can modify (as email or password).

Any idea or suggestion ?


RE: Crypted unique identifier - Euan T - 06-16-2019

I'd probably just has the ID, since that should never change. I'd probably use something like https://hashids.org/php/