Dutch PHP Conference 2025 - Call For Papers

rnp_save_keys

(PECL rnp >= 0.1.1)

rnp_save_keysSave keys to PHP string

Опис

rnp_save_keys(
    RnpFFI $ffi,
    string $format,
    string &$output,
    int $flags
): bool

Note that for G10, the output must be a directory (which must already exist).

Параметри

ffi

Об'єкт FFI, якого повертає rnp_ffi_create.

format

Ключовий формат даних (GPG, KBX, G10).

output

key packets will be saved to the string referenced by output.

flags

Варто прочитати опис прапорців RNP_LOAD_SAVE_*.

Значення, що повертаються

Returns true on success або false в разі помилки.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top