API Key Generator (Miscellaneous)

This is a PHP5 class that will allow you to generate a key for an especific user and validate it. In the features, there are:

  • It generates a 25 characters key
  • The key comes with rawurlencode(), this will allow you to pass the key trough an URL
  • The keys and usernames are saved into a .txt file
  • The system doesn’t duplicates keys or usernames! If the entered username is repeated, the system will just return the existing key of the respective user
  • You can use this wherever you want (Integration is too easy)

The finality is that you can easy implement this class to your API and allow the controlled use of it. With this class you only generate and validate keys, allowing to add whatever you want. For example, in the validating file you can save in a database each petition and control them!

Why do you not try it? :)

Download API Key Generator (Miscellaneous)

Leave a Reply

Your email address will not be published. Required fields are marked *