= 0.5)gnupg_adddecryptkey — Add a key for decryption說(shuō)明gnupg_adddecryptkey(resource $identifier, string $fingerprint, s">
(PECL gnupg >= 0.5)
gnupg_adddecryptkey — Add a key for decryption
$identifier
, string $fingerprint
, string $passphrase
): bool
identifier
gnupg 標(biāo)識(shí)符,由對(duì) gnupg_init() 或 gnupg 的調(diào)用生成。
fingerprint
指紋鍵名。
passphrase
The pass phrase.
成功時(shí)返回 true
, 或者在失敗時(shí)返回 false
。
示例 #1 Procedural gnupg_adddecryptkey() example
<?php
$res = gnupg_init();
gnupg_adddecryptkey($res,"8660281B6051D071D94B5B230549F9DC851566DC","test");
?>
示例 #2 OO gnupg_adddecryptkey() example
<?php
$gpg = new gnupg();
$gpg->adddecryptkey("8660281B6051D071D94B5B230549F9DC851566DC","test");
?>