PHP funkce sha1()
06. 07. 2020Dostupnost 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 | The input string. | |
$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.
Další zdroje
https://php.net/manual/en/function.sha1.php
Jan Barášek Více o autorovi
Autor článku podniká jako fullstack senior developer v Praze. Spravuje 300 různě velkých webových projektů, fungujících dodnes. Během spolupráce nabral hluboké zkušenosti, které na tomto webu předává dál.
Rád vám pomůžu:
Kontakt Konzultace a služby Nabídka spolupráce