Skip to content

Commit

Permalink
utf8 encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabri Onur Tüzün committed Mar 30, 2016
1 parent ce864be commit d9d945c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var utils = module.exports = {
},
generateHash: function (apiKey, randomString, secretKey, body) {
var shaSum = crypto.createHash('sha1');
shaSum.update(apiKey + randomString + secretKey + body);
shaSum.update(apiKey + randomString + secretKey + body, 'utf8');
return shaSum.digest('base64');
},
generateRequestString: function (request) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iyzipay",
"version": "1.1.4",
"version": "1.1.5",
"description": "iyzipay api node.js client",
"main": "lib/Iyzipay.js",
"scripts": {
Expand Down

0 comments on commit d9d945c

Please sign in to comment.