gnupg_addsignkey

(PECL gnupg >= 0.5)

gnupg_addsignkeyAdd a key for signing

说锟斤拷

gnupg_addsignkey ( resource $identifier , string $fingerprint [, string $passphrase ] ) : bool

锟斤拷锟斤拷

identifier

gnupg 锟斤拷识锟斤拷锟斤拷锟缴讹拷 gnupg_init() 锟斤拷 gnupg 锟侥碉拷锟斤拷锟斤拷锟缴★拷

fingerprint

指锟狡硷拷锟斤拷锟斤拷

passphrase

The pass phrase.

锟斤拷锟斤拷值

锟缴癸拷时锟斤拷锟斤拷 TRUE锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE锟斤拷

锟斤拷锟斤拷

Example #1 Procedural gnupg_addsignkey() example

<?php
$res 
gnupg_init();
gnupg_addsignkey($res,"8660281B6051D071D94B5B230549F9DC851566DC","test");
?>

Example #2 OO gnupg_addsignkey() example

<?php
$gpg 
= new gnupg();
$gpg -> addsignkey("8660281B6051D071D94B5B230549F9DC851566DC","test");
?>