Web推送消息解密aes128gcm

时间:2018-11-09 18:30:49

标签: php aes-gcm

伙计们! 我正在尝试从自己的推送服务器中解密推送消息。 因此,我知道公钥和auth机密参数。 我在文件中获取了编码的请求有效负载,并尝试对其进行解码:

$ciphertext = trim(file_get_contents("logs.txt"));
$publicKey = 'BCRH4G40osTxiez_SYLjB4Le93n.....';
$authToken ='J4E5Haf6yi0FZ......';
echo openssl_decrypt($ciphertext, "aes-128-gcm",$publicKey, 0, $authToken);

0 个答案:

没有答案