The link to the document I browsed is implemented using php. A url-safe base64 calculation method needs to be implemented by myself. The implementation code is as follows: {code ...} the results calculated using the putPolicy value are the same as the above results, but the calculated sign is: YzEwZTI4N2YyYjFlN2Y... links to my browsed documents
I use php for implementation. There is a url-safe base64 calculation method that needs to be implemented by myself. The implementation code is as follows:
function urlsafe_base64_encode( $str ){ return strtr(base64_encode($str), '+/', '-_');}
I useputPolicy
The calculation result of the value is the same as the preceding result,
But computingsign
We can see that:YzEwZTI4N2YyYjFlN2Y1NDdiMjBhOWViY2UyYWFkYTI2YWIyMGVmMg==
AndwQ4ofysef1R7IKnrziqtomqyDvI=
Different. I don't know where the problem is?
Reply content:
Links to my browsed documents
I use php for implementation. There is a url-safe base64 calculation method that needs to be implemented by myself. The implementation code is as follows:
function urlsafe_base64_encode( $str ){ return strtr(base64_encode($str), '+/', '-_');}
I useputPolicy
The calculation result of the value is the same as the preceding result,
But computingsign
We can see that:YzEwZTI4N2YyYjFlN2Y1NDdiMjBhOWViY2UyYWFkYTI2YWIyMGVmMg==
AndwQ4ofysef1R7IKnrziqtomqyDvI=
Different. I don't know where the problem is?
The examples are not necessarily exactly encoded, but just a demonstration. You can refer to our code implementation: https://github.com/qiniu/php-sdk/blob/develop/qiniu/utils.php
Hello, could you explain how wQ4ofysef1R7IKnrziqtomqyDvI = is calculated? I am using asp. net2.0 without this demo.