Home > PHP > Function > GnuPG > gnupg_import()

gnupg_import()

gnupg_import - Imports a key

Syntax

array gnupg_import (resource $identifier, string $keydata)

Arguments

  • identifier - The gnupg identifier, from a call to gnupg_init() or gnupg.
  • keydata - The data key that is being imported.

Description

Imports the key keydata and returns an array with information about the importprocess.

Version

PHP PECL gnupg >= 0.3

Return value

On success, this function returns and info-array about the importprocess. On failure, this function returns FALSE.