aliyun-signature

module
v0.0.0-...-5bd6e41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2018 License: MIT

README

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL