PHP - Manual: rnp_import_keys
2025-10-25
(PECL rnp >= 0.1.1)
rnp_import_keys — Import keys from PHP string to the keyring and receive JSON describing new/updated keys
ffiThe FFI object returned by rnp_ffi_create.
inputOpenPGP packets containing key(s) to be loaded. Can be either binary or ASCII armored.
flags
See RNP_LOAD_SAVE_* predefined constants.
JSON string with information about new and updated keys on success 或者在失败时返回 false.
官方地址:https://www.php.net/manual/en/function.rnp-import-keys.php