PHP Manual

PHP function sha1()

2019-09-11T08:04:03.000Z

Obsah článku

Availability in versions: PHP 4.3.0

Calculate the sha1 hash of a string

Parameters

Parameter Data type Default value Note
$str string not String being processed.
$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.

Return values

string

The sha1 hash as a string.

Other resources

Official sha1 documentation

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
65.

V jiných jazycích

Status:
All systems normal.
2025