Any secret key
Spews warnings, but that's fine for now
This commit is contained in:
parent
e27f9e236f
commit
e78424131e
@ -14,7 +14,7 @@ $keyEncrypted = OpenPGP_Message::parse(OpenPGP::unarmor($keyASCII, 'PGP PRIVATE
|
|||||||
|
|
||||||
// Try each secret key packet
|
// Try each secret key packet
|
||||||
foreach($keyEncrypted as $p) {
|
foreach($keyEncrypted as $p) {
|
||||||
if(!($p instanceof OpenPGP_SecretSubkeyPacket)) continue;
|
if(!($p instanceof OpenPGP_SecretKeyPacket)) continue;
|
||||||
|
|
||||||
$key = OpenPGP_Crypt_AES_TripleDES::decryptSecretKey($argv[2], $p);
|
$key = OpenPGP_Crypt_AES_TripleDES::decryptSecretKey($argv[2], $p);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user