Standard library / crypto/sha1

crypto/sha1.Size

Digest length in bytes (20) for the SHA1 algorithm. Cryptographically broken for collision resistance; use only for unavoidable legacy compatibility, never new signatures or adversarial integrity checks. Expected stdout: '20\n'.

Formal Syntax & Structure

go syntaxgo
const Size = 20

Working Example

Example Snippetgo
package main
import (  "crypto/sha1"  "fmt")
func main() { fmt.Println(sha1.Size) }
Go Reference