Files
YelayMaths/服务端/API/ApiGetUUID.php
T
2026-09-29 13:39:36 +08:00

11 lines
245 B
PHP
Executable File

<?php
// 生成一个随机的字符串或者使用你自己的字符串
$inputString = uniqid();
// 使用SHA-256算法计算哈希值
$hashedString = hash('sha256', $inputString);
// 输出生成的哈希值作为uuid
echo $hashedString;
?>