Standard library / crypto/sha256
crypto/sha256.Sum224()
Compute the SHA224 digest of a complete byte slice. A digest alone does not authenticate data; use HMAC or a signature where appropriate. Not a password hashing scheme. Expected stdout: '23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7\n'.
Formal Syntax & Structure
go syntaxgo
func Sum224(data []byte) [Size224]byteParameters & Attributes
| Name | Type | Description |
|---|---|---|
| data | []byte | Exact input bytes to hash. |
Return Value
[Size224]byte
Fixed-size SHA224 digest.
Working Example
Example Snippetgo
package main
import ( "crypto/sha256" "fmt")
func main() { fmt.Printf("%x\n", sha256.Sum224([]byte("abc"))) }