fixed keygen example for the phpseclib 2.0 branch

Starting with phpseclib 2.0, it is fully namespaced and we have to use the fully qualified name.
This commit is contained in:
Daniel Ruf 2016-02-23 20:33:23 +01:00
parent 57ab2811c4
commit bcc9c920a0
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
require_once dirname(__FILE__).'/../lib/openpgp.php';
require_once dirname(__FILE__).'/../lib/openpgp_crypt_rsa.php';
$rsa = new Crypt_RSA();
$rsa = new \phpseclib\Crypt\RSA();
$k = $rsa->createKey(512);
$rsa->loadKey($k['privatekey']);