Commit 318fbe05 authored by 方斌's avatar 方斌

z

parent 83e001bd
Pipeline #7325 passed with stage
in 4 seconds
...@@ -39,7 +39,7 @@ class CommonService extends Service { ...@@ -39,7 +39,7 @@ class CommonService extends Service {
let string_to_sign = base64_policy; let string_to_sign = base64_policy;
const crypto = require('crypto'); const crypto = require('crypto');
let signature = crypto.createHash('sha1').update(string_to_sign).digest().toString('base64');; let signature = crypto.createHmac('sha1', key).update(string_to_sign).digest().toString('base64');;
let config = { let config = {
region, region,
accessKeyId: id, accessKeyId: id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment