79392338

Date: 2025-01-27 22:42:03
Score: 2
Natty:
Report link

Based on following sources and reading several recommendations, I think this would be a good method to generate unguessable nonces.

`base64_encode(random_int(0,16).random_bytes(16));`

https://www.php.net/manual/en/function.uniqid.php

https://www.php.net/manual/en/function.random-int.php

https://www.php.net/manual/en/function.random-bytes.php

https://www.php.net/manual/en/function.bin2hex.php

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user19129626