From bcc9c920a065a1847b6d856c628e20c07ef9aa12 Mon Sep 17 00:00:00 2001 From: Daniel Ruf Date: Tue, 23 Feb 2016 20:33:23 +0100 Subject: [PATCH] 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. --- examples/keygen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/keygen.php b/examples/keygen.php index bd3ac5b..729ea39 100644 --- a/examples/keygen.php +++ b/examples/keygen.php @@ -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']);