gnupg_export
PHP function
Edit on GitHub ✎
(PECL gnupg >= 0.1)
Exports a key
Description
gnupg_export(resource $identifier, string $fingerprint): string|false
Exports the key fingerprint.
Parameters
identifierIdentifier
fingerprintFingerprint
Return Values
On success, this function returns the keydata. On failure, this function returns false.
Examples
Procedural gnupg_export() example
php
<?php
$res = gnupg_init();
$export = gnupg_export($res,"8660281B6051D071D94B5B230549F9DC851566DC");
echo $export;
?>OO gnupg_export() example
php
<?php
$gpg = new gnupg();
$export = $gpg->export("8660281B6051D071D94B5B230549F9DC851566DC");
?>