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

gnupg_cleardecryptkeys

PHP function Edit on GitHub ✎

(PECL gnupg >= 0.5)

Removes all keys which were set for decryption before

Description

gnupg_cleardecryptkeys(resource $identifier): bool

Parameters

identifier

Identifier

Return Values

Success

Examples

Procedural gnupg_cleardecryptkeys() example

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

OO gnupg_cleardecryptkeys() example

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

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