A simple way to generate an API key $b = rand(); echo "Type 1 Key: ". base64_encode($b) . "\n"; echo "Type 2 Key: ". sha1($b) . "\n"; OutputType 1 Key: NTcwMTQyODc5 Type 2 Key: eb9ded6eab70df20dd949c62099295a673985ab6 |
|||
|
|
ryantxrThoughts and comments about technology |
NavigationUser login |
|