openssl_sign

openssl_sign

(PHP 4 >= 4.0.4, PHP 5, PHP 7)

openssl_signGenerate signature

Description

bool openssl_sign ( string $data , string &$signature , mixed $priv_key_id [, mixed $signature_alg = OPENSSL_ALGO_SHA1 ] )

openssl_sign() computes a signature for the specified data by generating a cryptographic digital signature using the private key associated with priv_key_id. Note that the data itself is not encrypted.