php8.5
Home/ Manual/ rnp / functions/ rnp_import_keys

rnp_import_keys

PHP function Edit on GitHub ✎

(PECL rnp >= 0.1.1)

Import keys from PHP string to the keyring and receive JSON describing new/updated keys

Description

rnp_import_keys(RnpFFI $ffi, string $input, int $flags): string|false

Parameters

ffi

Ffi-description

input

OpenPGP packets containing key(s) to be loaded. Can be either binary or ASCII armored.

flags

See RNP_LOAD_SAVE_* predefined constants.

Return Values

JSON string with information about new and updated keys on successFalseforfailure.

Source: reference/rnp/functions/rnp-import-keys.xml · from the official PHP manual (php/doc-en)