setSignerKey ($fingerprint); $gnupg -> setPassPhrase ($passphrase); $text = $gnupg -> sign ($mailtext); echo $text; ?>