Created
February 26, 2022 08:30
-
-
Save 330132662/ce56728c378993eb468372f6f473eabd to your computer and use it in GitHub Desktop.
又拍云云存储访问控制token生成 PHP版
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$host = "http://ossupyun.****.com"; | |
$uri = '/androidtest/aaeb09fc85c7e3d4fb5c874efc48393e.jpg'; | |
$secret = '替换成你自己的token'; | |
$time = time() + 3600 * 24; | |
$light = $secret . "&" . $time . "&" . $uri; | |
$sign = md5($light); | |
$sign8 = substr($sign, 12, 8); | |
echo $host . $uri . "?_upt=" . $sign8 . $time; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment