Standard library / crypto/sha256
crypto/sha256.Size
Digest length in bytes (32) for the SHA256 algorithm. A digest alone does not authenticate data; use HMAC or a signature where appropriate. Not a password hashing scheme. Expected stdout: '32\n'.
Formal Syntax & Structure
go syntaxgo
const Size = 32Working Example
Example Snippetgo
package main
import ( "crypto/sha256" "fmt")
func main() { fmt.Println(sha256.Size) }