|
PHP5中文手册
openssl_sign(PHP 4 >= 4.0.4, PHP 5) openssl_sign — Generate signature 说明
bool openssl_sign
( string $data
, string &$signature
, mixed $priv_key_id
[, int $signature_alg
] )
openssl_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. 参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 更新日志
范例
Example#1 openssl_sign() example
<?php |