|
PHP5中文手册
gnupg_sign(PECL gnupg:0.1-1.3.1) gnupg_sign — Signs a given text 说明
string gnupg_sign
( resource $identifier
, string $plaintext
)
Signs the given plaintext with the keys, which were set with gnupg_addsignkey before and returns the signed text or the signature, depending on what was set with gnupg_setsignmode. 返回值On success, this function returns the signed text or the signature. On failure, this function returns FALSE. 范例
Example#1 Procedural gnupg_sign() example
<?php Example#2 OO gnupg_sign() example
<?php |