jump to navigation

Make your own API keys May 21, 2010

Posted by ryantxr in PHP, Programming, Uncategorized.
trackback

You’ve probably seen API keys created by various systems. They act as login and passwords and they look like this:

OTQ3MTIxMTQ3
c6e0b90fa7c98dc812f5446155d876a88b8d9a87

Here is a small snippet of PHP to generate API keys for your own system.

php api key generator

The only requirement when creating is that they should be unique.  Provide a means for your users to generate keys on your platform.  Then use the keys to allow the users to access your API programatically.

Advertisement

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.