0

I downloaded the OpenPGP example code mentioned in question How do you use the PHP OpenPGP library?.

I faced following error when I tried to access keygen.php:

Fatal error: Call to undefined method OpenPGP_Message::signature_and_data() in D:\official\data\sites\openpgp\lib\openpgp_crypt_rsa.php on line 145

Infact, none of three is working. Can you please explain how to fix these issues?

Community
  • 1
  • 1

1 Answers1

0

I guess that line 148 in https://github.com/singpolyma/openpgp-php/blob/master/lib/openpgp_crypt_rsa.php

must be corrected from: $sig = $packet->signature_and_data();

to: $sig = $packet->signatures();