open-dingtalk / DingTalk-Callback-Crypto

钉钉回调加解密类库和对应demo
62 stars 199 forks source link

php8.x 版本new Prpcrypt()无法继承AesKey #28

Closed ryiwu closed 1 year ago

ryiwu commented 2 years ago

image

执行$pc = new Prpcrypt($this->m_encodingAesKey); 再继续 $result = $pc->decrypt($encrypt, $this->m_corpId); 在继承下的Prpcrypt $this->key结果是null。

我自己每次new Prpcrypt 后,继续$pc->key = base64_decode($this->m_encodingAesKey. "=");才可以

chzealot commented 1 year ago

暂不考虑该场景,推荐采用 Stream Mode 接入