- Category : Php
- Location : Chandigarh, India
- Posted On : Jul 31, 2016
- Posted by : Vikas
In order to generate token for access to api and other
Here is the correct solution:
$token = bin2hex(openssl_random_pseudo_bytes(16));
Add Your Answer
When answering a question please:
- Read the question carefully.
- Understand that English isn't everyone's first language so be lenient of bad
spelling and grammar.
- If a question is poorly phrased then either ask for clarification, ignore it, or
edit the question and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.