|
|
@@ -38,15 +38,15 @@ class WXBizDataCrypt
|
|
38
|
38
|
public function decryptData( $encryptedData, $iv, &$data )
|
|
39
|
39
|
{
|
|
40
|
40
|
Db::name('log')->insert(['data'=>'进来了']);
|
|
41
|
|
- if (strlen($this->sessionKey) != 24) {
|
|
42
|
|
- return ErrorCode::$IllegalAesKey;
|
|
43
|
|
- }
|
|
|
41
|
+ // if (strlen($this->sessionKey) != 24) {
|
|
|
42
|
+ // return ErrorCode::$IllegalAesKey;
|
|
|
43
|
+ // }
|
|
44
|
44
|
$aesKey=base64_decode($this->sessionKey);
|
|
45
|
45
|
|
|
46
|
46
|
|
|
47
|
|
- if (strlen($iv) != 24) {
|
|
48
|
|
- return ErrorCode::$IllegalIv;
|
|
49
|
|
- }
|
|
|
47
|
+ // if (strlen($iv) != 24) {
|
|
|
48
|
+ // return ErrorCode::$IllegalIv;
|
|
|
49
|
+ // }
|
|
50
|
50
|
$aesIV=base64_decode($iv);
|
|
51
|
51
|
$aesCipher=base64_decode($encryptedData);
|
|
52
|
52
|
|