crypto: golang.org/x/crypto/md4 Index | Examples | Files

package md4

import "golang.org/x/crypto/md4"

Package md4 implements the MD4 hash algorithm as defined in RFC 1320.

Index

Examples

Package Files

md4.go md4block.go

Constants

const BlockSize = 64

The blocksize of MD4 in bytes.

const Size = 16

The size of an MD4 checksum in bytes.

func New Uses

func New() hash.Hash

New returns a new hash.Hash computing the MD4 checksum.

Code:

h := md4.New()
data := "These pretzels are making me thirsty."
io.WriteString(h, data)
fmt.Printf("%x", h.Sum(nil))

Output:

48c4e365090b30a32f084c4888deceaa

Package md4 imports 2 packages (graph) and is imported by 36 packages. Updated 2017-10-19. Refresh now. Tools for package owners.