略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: rnp_import_keys

2025-02-27

rnp_import_keys

(PECL rnp >= 0.1.1)

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

说明

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

参数

ffi

The FFI object returned by rnp_ffi_create.

input

OpenPGP 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

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3