ďťż

Blog literacki, portal erotyczny - seks i humor nie z tej ziemi


openssl_signPodręcznik PHPPoprzedniNastępnyopenssl_sign (PHP 4 >= 4.0.4)openssl_sign -- Generate signatureDescriptionbool openssl_sign (string data, string signature, mixed priv_key_id)OstrzeżenieTa funkcja jest w stadium
EKSPERYMENTALNYM. Oznacza to, że zachowanie funkcji, jej
nazwa, w zasadzie wszystko udokumentowane tutaj może zostać zmienione w
przyszłych wersjach PHP bez wcześniejszego uprzedzenia. Używaj tej funkcji na
własne ryzyko. Returns TRUE on success, or FALSE on failure.
If successful the signature is returned in
signature.
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.
Przykład 1. openssl_sign() example// $data is assumed to contain the data to be signed

// fetch private key from file and ready it
$fp = fopen("/src/openssl-0.9.6/demos/sign/key.pem", "r");
$priv_key = fread($fp, 8192);
fclose($fp);
$pkeyid = openssl_get_privatekey($priv_key);

// compute signature
openssl_sign($data, $signature, $pkeyid);

// free the key from memory
openssl_free_key($pkeyid);
See also openssl_verify().
PoprzedniSpis treściNastępnyopenssl_sealPoczątek rozdziałuopenssl_verify
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • qualintaka.pev.pl
  •