WorldWideScripts.net Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
PHP Scripts / Miscellaneous

API Key Generator

— Add-On to WorldWideScripts.net

Subscribe to our feed to stay up to date!

New! Follow us as you want it!


API Key Generator - CodeCanyon Item for Sale

Ads

Ad: Bluehost hosting

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
  • You can change the length of the key that will be generated (default 25)
  • You can set what characters do you want in the key (Default A-Z a-z 0-9!@^$*()_+)
  • You can set the file where will be saved the users/keys
  • The key comes with rawurlencode(), this will allow you to pass the key trough an URL
  • 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)
  • You don’t need database! And if you want, you can integrate this into a database

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? :)

Rating will be really appreciated.
Questions? Suggestions? Please, don’t doubt to leave a comment!


Changelog

1.1
*Renewed documentation
*Renewed code estructure
*Fixed bugs in validation/generation. (bad url-encoding)
*Added setFile(), setChars() and setLength()


1.0
Item added in CodeCanyon

Download
Other components in this categoryAll components of this author
CommentsFrequently asked questions and answers

Properties

Created:
28 June 11

Last Update:
4 November 14

High Resolution:
No

Files Included:
HTML, CSS, PHP

Software Version:
PHP 5.x

Keywords

eCommerce, eCommerce, All Items, api, auth, control, curl, generator, get, key, script, token, user, validate