PHP-081 / Advanced
Using only uniqid() to create temporary files
Why is this a problem?
uniqid() is time-based and therefore predictable.
How to fix it
php
$downloadKey = bin2hex(random_bytes(16)); PHP-081 / Advanced
uniqid() is time-based and therefore predictable.
$downloadKey = bin2hex(random_bytes(16));