Files
lucent-laravel/src/Account/Token.php
T
2023-10-02 23:10:49 +03:00

14 lines
168 B
PHP

<?php
namespace Lucent\Account;
class Token
{
public static function new(int $length = 64): string
{
return bin2hex(random_bytes($length));
}
}