Merge pull request #24 from DanielRuf/patch-1

fixed keygen example for the phpseclib 2.0 branch
This commit is contained in:
Stephen Paul Weber 2016-02-24 10:27:45 -05:00
commit 6340379ffe

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']);