openssl_signGenerate signature
&reftitle.description;
boolopenssl_signstringdatastringsignaturemixedpriv_key_idintsignature_algOPENSSL_ALGO_SHA1openssl_sign computes a signature for the
specified data by using SHA1 for hashing
followed by encryption using the private key associated with
priv_key_id. Note that the data itself is
not encrypted.
&reftitle.parameters;
datasignature
If the call was successful the signature is returned in
signature.
priv_key_idsignature_alg
For more information see the list of Signature Algorithms.
&reftitle.returnvalues;
&return.success;
&reftitle.changelog;
&Version;&Description;5.0.0
The signature_alg parameter was added.
&reftitle.examples;
openssl_sign example
]]>
&reftitle.seealso;
openssl_verify