Skip to content

Commit

Permalink
convert sha1 to sha256
Browse files Browse the repository at this point in the history
  • Loading branch information
PAYFULL-ODEME committed Dec 14, 2018
1 parent aa3edd2 commit cf9e324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PayfullClient/src/Payfull/Requests/Request.php
Expand Up @@ -53,7 +53,7 @@ protected static function generateHash($params,$password)
$l = mb_strlen($val);
if($l) $hashString .= $l . $val;
}
return hash_hmac("sha1", $hashString, $password);
return hash_hmac("sha256", $hashString, $password);
}

protected static function send($endpoint, $params)
Expand Down Expand Up @@ -85,4 +85,4 @@ protected function createRequest()
}


}
}

0 comments on commit cf9e324

Please sign in to comment.