logo SnippetVamp

php 141css 88fonctions 82astuce 77javascript 70html 56fichiers 35jquery 31securite 19texte 17bootstrap 14parser 14debug 12graphisme 11python 11responsive 8pluXML 7bash 6PHP 6crossbrowser 4vanilla 4ajax 3mail 3markdown 3mobile 3regex 3apache 2auto_ 2browser 2conversion 2error 2evenements 2excel 2form 2ips 2lib 2linux 2SQL 2vba 2cinema 1compteur 1dothtaccess 1effets 1erreurs 1fallback 1filter 1images 1pluxml 1social 1SQLite 1xml 1
SnippetVamp 3.1b - 2025 - GNU GPL - FAQ
#key - Create Auth Tokens with PHP
// php7
// bin2hex(random_bytes($length))
$token = bin2hex(random_bytes(64));

// fallback
$token = bin2hex(openssl_random_pseudo_bytes($length));


			
astuce php securite
https://davidwalsh.name/random_bytes
public - 18/04/2019 - Add to pack - texte seul - permalink