prakash Posted June 24, 2009 Share Posted June 24, 2009 Hi, I am developing an application which can be connected by other application for fetching data. So, I am little bit confused how to generate & provide such secure keys to others. Can anyone give me an idea for generating automated secure keys for my application. thanks Quote Link to comment https://forums.phpfreaks.com/topic/163474-generating-keys-like-api/ Share on other sites More sharing options...
JonnoTheDev Posted June 24, 2009 Share Posted June 24, 2009 Use md5() and /or sha1() hash functions with a salt / string to generate a key i.e. <?php $salt = 1234; $string = "foobar"; $key = sha1(sha1($salt.strtolower($string)); ?> Quote Link to comment https://forums.phpfreaks.com/topic/163474-generating-keys-like-api/#findComment-862747 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.