fobe-web/globals/Dependencies/Common/HashingUtiltity.php

12 lines
231 B
PHP

<?php
namespace Alphaland\Common {
class HashingUtiltity
{
public static function GenerateByteHash(int $length): string
{
return bin2hex(openssl_random_pseudo_bytes($length));
}
}
}