We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23d961f commit 1027077Copy full SHA for 1027077
1 file changed
lib/common/signing/hmacsha256sign.js
@@ -24,7 +24,7 @@ var crypto = require('crypto');
24
*/
25
function HmacSha256Sign(accessKey) {
26
this._accessKey = accessKey;
27
- this._decodedAccessKey = new Buffer(this._accessKey, 'base64');
+ this._decodedAccessKey = Buffer.from(this._accessKey, 'base64');
28
}
29
30
/**
0 commit comments