chesslablab / chess-api

REST-like chess API.
https://chesslablab.github.io/chess-api/
MIT License
23 stars 10 forks source link

Implement a PHP script to create API keys #141

Closed programarivm closed 9 months ago

programarivm commented 9 months ago

The X-API-Key HTTP header needs to be used from now on to secure the API endpoints in a simple way. The first step is to implement a PHP script that will generate an API key in the form of a hash given a password and a salt. This will allow to verify whether an incoming API key has been created using the expected password and salt.

See:

Happy coding!