CodeIgniter Forums
Best way to create an API Key ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Best way to create an API Key ? (/showthread.php?tid=7418)



Best way to create an API Key ? - El Forum - 04-08-2008

[eluser]Prasanna[/eluser]
I am developing an API. I would like to know what is the best method to generate an API key ? OR what is the standard that has to be followed while generating the API key?

Thanks in advance :-)


Best way to create an API Key ? - El Forum - 04-11-2008

[eluser]Sean Murphy[/eluser]
Unless I'm missing something, you just create a unique hash for each user. MD5, SHA1, CRC32, whatever. My one suggestion is that you make the hash shorter if possible.