php8.5
Home/ Manual/ gnupg / functions/ gnupg_clearencryptkeys

gnupg_clearencryptkeys

PHP function Edit on GitHub ✎

(PECL gnupg >= 0.5)

Removes all keys which were set for encryption before

Description

gnupg_clearencryptkeys(resource $identifier): bool

Parameters

identifier

Identifier

Return Values

Success

Examples

Procedural gnupg_clearencryptkeys() example

php
<?php
$res = gnupg_init();
gnupg_clearencryptkeys($res);
?>

OO gnupg_clearencryptkeys() example

php
<?php
$gpg = new gnupg();
$gpg->clearencryptkeys();
?>

Source: reference/gnupg/functions/gnupg-clearencryptkeys.xml · from the official PHP manual (php/doc-en)