PHP.nl

gnupg_keyinfo

gnupg_keyinfo

Returns an array with information about all keys that matches the given pattern

 **gnupg_keyinfo** resource $identifier string $pattern

identifier``patternThe pattern being checked against the keys.

Returns an array with information about all keys that matches the given pattern or false, if an error has occurred.

Voorbeeld: Procedural example

<?php
$res = gnupg_init();
$info = gnupg_keyinfo($res, 'test');
print_r($info);
?>

Voorbeeld: OO example

<?php
$gpg = new gnupg();
$info = $gpg->keyinfo("test");
print_r($info);
?>