PHP.mk документација

rnp_op_encrypt

Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.

function.rnp-op-encrypt.php PHP.net прокси Преводот се освежува
Оригинал на PHP.net
Патека function.rnp-op-encrypt.php Локална патека за оваа страница.
Извор php.net/manual/en Оригиналниот HTML се реупотребува и локално се стилизира.
Режим Прокси + превод во позадина Кодовите, табелите и белешките остануваат читливи во истиот тек.
rnp_op_encrypt

Референца за `function.rnp-op-encrypt.php` со подобрена типографија и навигација.

function.rnp-op-encrypt.php

rnp_op_encrypt

(PECL rnp >= 0.1.1)

rnp_op_encryptEncrypt message

= NULL

rnp_op_encrypt(
         RnpFFI $ffi,
         string $message,
         array $recipient_keys_fp,
         array $options = ?
): string|false

Параметри

ffi
FFI објектот вратен од rnp_ffi_create().
message
Message to be encrypted.
recipient_keys_fp
Array with fingerprints of recipient's keys. At least one key must be present.
options
An associative array with options.
Можни индекси на низи за Константа на опција = NULL
"compression_alg" string Compression algorithm. Both "compression_alg" and "compression_level" must be set in order to enable data compression.
"compression_level" integer Compression level, 0-9. 0 disables compression.
"armor" boolean Enable ASCII-armored output. Disabled by default.
"add_signature" boolean Encrypted message will be also signed.
"hash" string Set hash algorithm used during signature calculation. "add_signature" option should be set to true
"creation_time" integer Set signature creation time in seconds since Jan, 1 1970 UTC. By default current time is used.
"expiration_time" integer Set signature expiration time in seconds since the creation time. 0 value is used to mark signature as non-expiring (default value).
"password" string Add password which is used to encrypt data.
"cipher" string Set symmetric encryption algorithm. Possible values are "IDEA", "TRIPLEDES", "CAST5", "BLOWFISH", "AES128", "AES192", "AES256", "TWOFISH", "CAMELLIA128", "CAMELLIA192", "CAMELLIA256", "SM4".
"aead" string Set AEAD mode algorithm. Possible values are "None" to disable AEAD, "EAX", "OCB".
"aead_bits" integer Set chunk length for AEAD mode via number of chunk size bits. Must be between 0 to 56.
"flags" integer Set additional encryption flags. Supported flags: RNP_ENCRYPT_NOWRAP - do not wrap the data in a literal data packet. This would allow to encrypt already signed data.
"file_name" string Set the internally stored file name for the data being encrypted. Special value _CONSOLE may be used to mark message as 'for your eyes only', i.e. it should not be stored anywhere but only displayed to the receiver. Default is the empty string.
"file_mtime" integer Set input file modification date in seconds since Jan, 1 1970 UTC.

Вратени вредности

Encrypted data on success or false при неуспех.

Белешки од корисници

Нема белешки од корисници за оваа страница.
На оваа страница

Автоматски outline од активната документација.

Насловите ќе се појават тука по вчитување.

Попрегледно читање

Примерите, changelog табелите и user notes се визуелно издвоени за да не се губат во долгата содржина.

Брз совет Користи го outline-от Скокни директно на главните секции од активната страница.
Извор Оригиналниот линк останува достапен Кога ти треба целосен upstream context, отвори го PHP.net во нов tab.