Skip to content

Commit

Permalink
issue #420
Browse files Browse the repository at this point in the history
  • Loading branch information
Player626 committed Nov 17, 2020
1 parent 566a53b commit 9829c9b
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 9829c9b

Please sign in to comment.