Standard library / crypto
crypto.SHA1
Legacy collision-broken hash; do not use for new signatures. This identifier provides metadata but does not itself link the algorithm. Check Available before New. Expected stdout: '20\n'.
Formal Syntax & Structure
go syntaxgo
const SHA1 Hash = 3Working Example
Example Snippetgo
package main
import ( "crypto" "fmt")
func main() { fmt.Println(crypto.SHA1.Size()) }