首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >decode sign failed?

decode sign failed?

提问于 2018-05-11 02:35:16
回答 3关注 1查看 617

采用 python 撰写,主要代码如下:

sign = '&'.join(['a=' + appId, 'b=' + bucket, 'k=' + secretId, 'e=' + str(expire), 't=' + str(current), 'r=' + tmp, 'u=' + str(userId), 'f=' + fileId])

myhmac = hmac.new(secretKey.encode('utf8'), sign.encode('utf8'), sha1).digest()

rsign = base64.b64encode(myhmac)

提交后提示 decode sign failed,是啥问题?

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档