Merge pull request #24 from DanielRuf/patch-1
fixed keygen example for the phpseclib 2.0 branch
This commit is contained in:
commit
6340379ffe
@ -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']);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user