Rename symmetric encrypt/decrypt class
I'm going to make this one more generic than one library, and have it support ciphers based on what libraries are available, so this more generic name is appropriate.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
require dirname(__FILE__).'/../lib/openpgp.php';
|
||||
require dirname(__FILE__).'/../lib/openpgp_crypt_rsa.php';
|
||||
require dirname(__FILE__).'/../lib/openpgp_crypt_aes_tripledes.php';
|
||||
require dirname(__FILE__).'/../lib/openpgp_crypt_symmetric.php';
|
||||
|
||||
$keyASCII = file_get_contents($argv[1]);
|
||||
$msgASCII = file_get_contents($argv[3]);
|
||||
@@ -16,7 +16,7 @@ $keyEncrypted = OpenPGP_Message::parse(OpenPGP::unarmor($keyASCII, 'PGP PRIVATE
|
||||
foreach($keyEncrypted as $p) {
|
||||
if(!($p instanceof OpenPGP_SecretKeyPacket)) continue;
|
||||
|
||||
$key = OpenPGP_Crypt_AES_TripleDES::decryptSecretKey($argv[2], $p);
|
||||
$key = OpenPGP_Crypt_Symmetric::decryptSecretKey($argv[2], $p);
|
||||
|
||||
$msg = OpenPGP_Message::parse(OpenPGP::unarmor($msgASCII, 'PGP MESSAGE'));
|
||||
|
||||
|
Reference in New Issue
Block a user