Standard library / crypto/sha512
crypto/sha512.Sum512_224()
Compute the SHA512/224 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: '4634270f707b6a54daae7530460842e20e37ed265ceee9a43e8924aa\n'.
Formal Syntax & Structure
go syntaxgo
func Sum512_224(data []byte) [Size224]byteParameters & Attributes
| Name | Type | Description |
|---|---|---|
| data | []byte | Exact input bytes to hash. |
Return Value
[Size224]byte
Fixed-size SHA512/224 digest.
Working Example
Example Snippetgo
package main
import ( "crypto/sha512" "fmt")
func main() { fmt.Printf("%x\n", sha512.Sum512_224([]byte("abc"))) }