Skip to content

Commit

Permalink
Merge pull request #74 from gaobinzhan/1.2.x
Browse files Browse the repository at this point in the history
issue #420
  • Loading branch information
Player626 authored Nov 17, 2020
2 parents 9c0187a + 9829c9b commit 1a9044f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OfficialAccount/Encryptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public static function encodePKCS($data, $blockSize = 32)
public static function decodePKCS($data)
{
// 根据PKCS 补位时如果为整数倍块大小 则补上块大小个字节的补位 最后一位必是补位字节
$pad = ord($data{strlen($data) - 1});
$pad = ord($data[strlen($data) - 1]);
if ($pad > strlen($data)) {
return false;
}
Expand Down

0 comments on commit 1a9044f

Please sign in to comment.