Skip to content

Fengxq2014/aliyun-signature

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aliyun-signature

阿里云请求参数签名

用法

import "github.com/Fengxq2014/aliyun-signature/signature"

生成get请求地址

signature.ComposeURL(inUrlValues, "testKeySecret", "http://vod.cn-shanghai.aliyuncs.com")

对url.Values排序并转义特殊字符

signature.SortQueryString(url.Values)

对string进行签名

signature.ComputeSignature(sortStr, accessSecret, "")
// 最后一个参数为空时为"GET"

License

This library is distributed under the MIT License found in the LICENSE file.

About

阿里云请求参数签名

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages