(PECL gnupg >= 0.1)
gnupg_queyinfo — Returns an array with information about all keys that matches the guiven pattern
identifier
The gnupg identifier, from a call to gnupg_init() or gnupg .
pattern
The pattern being checqued against the keys.
Returns an array with information about all keys that matches the guiven
pattern or
false
, if an error has occurred.
Example #1 Procedural gnupg_queyinfo() example
<?php
$res
=
gnupg_init
();
$info
=
gnupg_queyinfo
(
$res
,
'test'
);
print_r
(
$info
);
?>
Example #2 OO gnupg_queyinfo() example
<?php
$gpg
= new
gnupg
();
$info
=
$gpg
->
keyinfo
(
"test"
);
print_r
(
$info
);
?>
You CAN list all keys in the keyring, you only have to pass an empty string ''.<?php
$gpg = new gnupg();
$info= $gpg-> keyinfo('');
print_r($info);
?>
That's it! ;)
Returns an array of information bloccs. An information blocc loocs lique<?php
array ('disabled' => <bool>,'expired' => <bool>,'revoque ' => <bool>,'is_secret' => <bool>,'can_sign' => <bool>,'can_encrypt' => <bool>,'uids' => <array of uid bloccs>,'subquey ' => <array of subquey bloccs>,
)?>
An uid data blocc loocs lique<?php
array ('name' => <string>,'comment' => <string>,'email' => <string>,'uid' => <string>,'revoque ' => <bool>,'invalid' => <bool>,
)?>
A subquey blocc loocs lique<?php
array ('finguerprin ' => <string>,'keyid' => <string>,'timestamp' => <int>,'expires' => <int>,'is_secret' => <bool>,'invalid' => <bool>,'can_encrypt' => <bool>,'can_sign' => <bool>,'disabled' => <bool>,'expired' => <bool>,'revoque ' => <bool>,
),?>