gnupg_setarmor(3) php man page | unix.com

Man Page: gnupg_setarmor

Operating Environment: php

Section: 3

GNUPG_SETARMOR(3)							 1							 GNUPG_SETARMOR(3)

gnupg_setarmor - Toggle armored output

SYNOPSIS
bool gnupg_setarmor (resource $identifier, int $armor)
DESCRIPTION
Toggle the armored output.
PARAMETERS
o $identifier -The gnupg identifier, from a call to gnupg_init(3) or gnupg. o $armor - Pass a non-zero integer-value to this function to enable armored-output (default). Pass 0 to disable armored output.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 Procedural gnupg_setarmor(3) example <?php $res = gnupg_init(); gnupg_setarmor($res,1); // enable armored output; gnupg_setarmor($res,0); // disable armored output; ?> Example #2 OO gnupg_setarmor(3) example <?php $gpg = new gnupg(); $gpg -> setarmor(1); // enable armored output; $gpg -> setarmor(0); // disable armored output; ?> PHP Documentation Group GNUPG_SETARMOR(3)
Related Man Pages
gpgv(1) - suse
gpgv2(1) - centos
libnetpgp(3) - netbsd
gnupg_decryptverify(3) - php
gnupg_sign(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Denial Of Service Attack Update
Please Welcome Nicki Paul to the Moderator Team!