PHP funkce sha1()
Dostupnost ve verzích: PHP 4.3.0
Calculate the sha1 hash of a string
Parametry
| Parametr | Datový typ | Výchozí hodnota | Poznámka |
|---|---|---|---|
$str |
string |
není | Zpracovávaný řetězec. |
$raw_output |
bool |
null | If the optional raw_output is set to true, then the sha1 digest is instead returned in raw binary format with a length of 20, otherwise the returned value is a 40-character hexadecimal number. |
Návratové hodnoty
string
the sha1 hash as a string.