Encrypt the timestamp with MD5 and intercept part of it
<?php
function token($length){
$str = md5(time());
$token = substr($str,5,$length);
return $token;
}
echo token(6);
?>
Encrypt the timestamp with MD5 and intercept part of it
<?php
function token($length){
$str = md5(time());
$token = substr($str,5,$length);
return $token;
}
echo token(6);
?>
Alipay
Author of this article: Hong Mu
Link to this article: https://www.4s5.cn/en/archives/84.html
Copyright statement:This article is an original article. Any form of reproduction, collection, or mirroring without authorization is prohibited. Violators will be prosecuted. If you need to reprint, please indicate the source and keep the link to the original text.
webmaster · Thanks for reading, stay tuned for more exciting content