Standard library / crypto/sha512
crypto/sha512.New512_224()
Create an incremental SHA512/224 hash. Write accepts successive chunks; Sum appends the digest without consuming the hash state. 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 New512_224() hash.HashReturn Value
hash.Hash
Fresh SHA512/224 hash instance.
Working Example
Example Snippetgo
package main
import ( "crypto/sha512" "fmt")
func main() { h := sha512.New512_224() h.Write([]byte("a")) h.Write([]byte("bc")) fmt.Printf("%x\n", h.Sum(nil))}