Standard library / crypto/sha512
crypto/sha512.New384()
Create an incremental SHA384 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: 'cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7\n'.
Formal Syntax & Structure
go syntaxgo
func New384() hash.HashReturn Value
hash.Hash
Fresh SHA384 hash instance.
Working Example
Example Snippetgo
package main
import ( "crypto/sha512" "fmt")
func main() { h := sha512.New384() h.Write([]byte("a")) h.Write([]byte("bc")) fmt.Printf("%x\n", h.Sum(nil))}