PHP.nl

rnp_op_generate_key

rnp_op_generate_key

Generate key

 **rnp_op_generate_key** RnpFFI $ffi string $userid string $key_alg string $sub_alg array $options

ffirnp.parameter.ffi-description

useridPGP User ID - text that is intended to represent the name and email address of the key holder.

key_algPrimary key algorithm (i.e. 'RSA', 'DSA', etc).

sub_algSubkey algorithm. If not set, subkey will not be generated.

optionsAn associative array with options.

Fingerprint of the generated primary keyreturn.falseforfailure. This fingerprint can be used later to reference the key in sign and encrypt operations. The key data is stored in FFI memory context and can be saved using or . rnp_save_keys``rnp_save_keys_to_path