SHA-1

An older hash function producing a 160-bit value, now considered broken for security because collisions can be created on purpose.

In more detail

It is written as 40 hexadecimal characters and is still how Git names objects by default. Standards bodies recommend SHA-256 for new uses, and it must not be used for signatures or certificates.

Examples

Git names objects with a hardened SHA-1 by default; git init --object-format=sha256 creates a SHA-256 repository instead.
The WebSocket handshake computes Sec-WebSocket-Accept with SHA-1; that is a protocol check, not a security guarantee.

Related terms

Taught in

References